Switch the OpenGL ES renderers to request EGL OpenGL contexts

This commit is contained in:
Sam Lantinga 2012-07-18 15:20:32 -07:00
parent b3219a6db1
commit 4d8e7cdf64
2 changed files with 2 additions and 0 deletions

View file

@ -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);