I'm trying to find a way to check to see if a current EGLContext exists and is ready to use on Android. By specification, I've tried using
((EGL10)EGLContext.getEGL()).eglGetCurrentContext() and then comparing it to EGL10.EGL_NO_CONTEXT (tried .equals() and ! = ). However, even though through debugging it 'seems' that it is returning an instance of 'EGL_NO_CONTEXT' (seems meaning all the internal values are uninitialized) however no matter what comparison I do I can't get it to work (At any rate using debugging shows EGL_NO_CONTEXT's memory location is different than the returned object). Anyone know of another/proper method to get this done? I don't want to do it by throwing a random GL call and catching the EGLError... There is also a StackOverflow question up here: http://stackoverflow.com/questions/3091937/call-to-check-if-a-current-eglcontext-exists-in-android -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

