Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7182437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:46:15+00:00 2026-05-28T17:46:15+00:00

I am getting this error: ERROR libEGL call to OpenGL ES API with no

  • 0

I am getting this error:

ERROR libEGL call to OpenGL ES API with no current context

My class extends GLSurfaceView. I have a method Init() that is called (from the main Activity) to initialize some things. This method is always called after OnSurfaceCreated(). This method calls a native library function that, in turn, calls some opengl functions.

I have changed things so that now i initializes things in the method onDraw() and it works.
So, can opengl functions (from java or native code) be called only from java methods that have a GL10 parameter?

I am confused but multithreaded programming, since i come from plain single thread development. When it is safe (the context is available) to call opengles functions from native code? Only from OnDraW(), onSurfaceCreated(), onSurfaceChanged() ?

Why when, from the activity method, i call the Init() method of my gl class and the context is not available?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:46:15+00:00Added an answer on May 28, 2026 at 5:46 pm

    Are you using queuevent(runnable)? By the sound of it you’re calling native functions from the ui thread. By using queuevent you insure that these are run in the glthread
    and subsequently use the correct context.
    check this out: http://developer.android.com/reference/android/opengl/GLSurfaceView.html#queueEvent(java.lang.Runnable)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this error with my current PHP code: Notice: TO id was not
I am getting this error when I am trying to get the CurrentSession NHibernate.Context.CurrentSessionContext.CurrentSession()
I'm getting this error Traceback (most recent call last): File /home/<username>/flup/server/fcgi_base.py, line 558, in
Getting this error cross compiling node.js for optware (slug) on Ubuntu 11.10. /optware/cs05q1armel/builds/node/build/default/libv8.a(api.o): Relocations
Getting this error on a call inside the Delphi Initialization section of an Impl
Getting this error: 2009-09-03 12:44:02.307 xcodebuild[307:10b] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler
Getting this error with jquery & jquery.form. Site has been live for awhile..upgraded to
Anyone getting this error when using the new free chart controls MS bought from
I´m getting this error while trying to commit to a svn repository: svn: MKACTIVITY
Keep getting this error after inserting a subdatasheet into a query and trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.