mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 19:24:30 -05:00
Switch the OpenGL ES renderers to request EGL OpenGL contexts
This commit is contained in:
@@ -269,6 +269,7 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
|
||||
GLint value;
|
||||
Uint32 windowFlags;
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_EGL, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
|
||||
|
||||
|
||||
@@ -1600,6 +1600,7 @@ GLES2_CreateRenderer(SDL_Window *window, Uint32 flags)
|
||||
Uint32 windowFlags;
|
||||
GLint window_framebuffer;
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_EGL, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user