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

  • Home
  • SEARCH
  • 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 7875835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:04:04+00:00 2026-06-03T03:04:04+00:00

For whatever reason, my EGL Context Client Version isn’t getting set in my OpenGL

  • 0

For whatever reason, my EGL Context Client Version isn’t getting set in my OpenGL application. I setup the context by simply doing the following:

final boolean supportEs2 = configurationInfo.reqGlEsVersion >= 0x20000;

        if (supportEs2) { //<-- this resolves to true.


            mGLView.setEGLContextClientVersion(2);

            try {
                mGLView.setRenderer(new PongDroidRenderer(getApplicationContext()));
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }

And after that, I get a runtime exception when trying to compile a shader due to the context not being called correctly. After some research, I figured out that I’m unable to call OpenGL from the main thread, however, as far as I know my application itself isn’t multi-threaded (of course, the system is however). So, I’m kind of hoping to see if anyone here would have any idea as to how I can get this working, and if more information is provided just say the word and I’ll post it here.

  • 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-06-03T03:04:05+00:00Added an answer on June 3, 2026 at 3:04 am

    Are you using a glSurfaceView? The opengl context is only valid from the surfaceview thread (the one that calls onDrawFrame, onSurfaceChanged, onSurfaceCreated, etc). You should compile your shaders in those callbacks.

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

Sidebar

Related Questions

On whatever reason this is not working (says 'file not found'), set in=c:\myprogram\_save cd
For whatever reason, std::cout does not display anything with my application. The description of
For whatever reason, Sessions don't work in my Silex-app. I set error_reporting in my
I have an ASP.NET web application that, for whatever reason, when it is deployed
For whatever reason, I'm getting the error Invalid column name allocationStart when trying to
This is an odd one, for whatever reason, getting the children of an element
I'm building a web application right now for my company and for whatever reason,
I have an existing database that was setup (for whatever reason??) to store a
For whatever reason, I need to go through a MySQL result set twice. Is
Our style guide says (for whatever reason that isn't important to this question) no

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.