Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Switch the OpenGL ES renderers to request EGL OpenGL contexts

  • Loading branch information
slouken committed Jul 18, 2012
1 parent 180c5ca commit a81b725288794df959b7006a8e83360e1acca45b
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/render/opengles/SDL_render_gles.c
  2. +1 −0 src/render/opengles2/SDL_render_gles2.c
@@ -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);

0 comments on commit a81b725

Please sign in to comment.