OPENGL: Merge both OpenGL contexts
This commit is contained in:
parent
9aef2f7b98
commit
4ab044a254
39 changed files with 392 additions and 593 deletions
|
@ -171,7 +171,7 @@ void AndroidGraphics3dManager::initSurface() {
|
|||
_screenChangeID = JNI::surface_changeid;
|
||||
|
||||
// Initialize OpenGLES context.
|
||||
OpenGLContext.initialize(OpenGL::kOGLContextGLES2);
|
||||
OpenGLContext.initialize(OpenGL::kContextGLES2);
|
||||
logExtensions();
|
||||
GLESTexture::initGL();
|
||||
|
||||
|
@ -244,7 +244,7 @@ void AndroidGraphics3dManager::deinitSurface() {
|
|||
_touchcontrols_texture->release();
|
||||
}
|
||||
|
||||
OpenGL::ContextGL::destroy();
|
||||
OpenGLContext.reset();
|
||||
|
||||
JNI::deinitSurface();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue