Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Switch the OpenGL ES renderers to request EGL OpenGL contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 18, 2012
1 parent 180c5ca commit a81b725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/render/opengles/SDL_render_gles.c
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -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);

Expand Down

0 comments on commit a81b725

Please sign in to comment.