Fix OpenGL initialization
This commit is contained in:
@@ -17,7 +17,7 @@ static const EGLint attribs[] =
|
||||
EGL_RED_SIZE, 8,
|
||||
EGL_GREEN_SIZE, 8,
|
||||
EGL_BLUE_SIZE, 8,
|
||||
//EGL_ALPHA_SIZE, 8,
|
||||
EGL_ALPHA_SIZE, 8,
|
||||
//EGL_DEPTH_SIZE, 16,
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_BIT,
|
||||
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
|
||||
@@ -75,4 +75,6 @@ bool init_OpenGL_backend(Instance * instance)
|
||||
//
|
||||
// Restore context
|
||||
eglMakeCurrent(old_display, old_surface_draw, old_surface_read, old_context);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user