eglMakeCurrent(sstDisplay.display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); eglASSERT();eglDestroySurface(sstDisplay.display, sstDisplay.surface); eglASSERT();
sstDisplay.surface = eglCreateWindowSurface(sstDisplay.display, sstDisplay.config, window, NULL); eglASSERT(); eglMakeCurrent(sstDisplay.display, sstDisplay.surface, sstDisplay.surface, sstDisplay.context); eglASSERT();
I currently have a 100% NDK app that was originally targeted for v2.3. That API had no way to preserve an OpenGL context after an onPause or onStop was called, so we simply killed the app completely when either of those actions were performed. Which obviously makes for a pretty crappy user experience, but was far simpler than trying to recreate the entire OpenGL state. I am now in the process of bringing the entire application up to v4.x, and wanted to revisit this issue to see if there was now a proper solution. I see that the SDK has a method called "setPreserveEGLContextOnPause", but since I dont even have a GLSurfaceView in my app, I cant call that. Is there a solution to this issue in 100% NDK environments?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/d/optout.