From 81e2f2d783f2861eb51736ba44362ce397c41c1f Mon Sep 17 00:00:00 2001 From: Aloshi Date: Thu, 24 Oct 2013 16:43:54 +0000 Subject: [PATCH] Specify for SDL to use OpenGL ES 1.x --- src/Renderer_init_sdlgl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Renderer_init_sdlgl.cpp b/src/Renderer_init_sdlgl.cpp index d807fcdaf..a9b4d97cd 100644 --- a/src/Renderer_init_sdlgl.cpp +++ b/src/Renderer_init_sdlgl.cpp @@ -42,6 +42,10 @@ namespace Renderer SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + + if(USE_OPENGL_ES) + SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1); + //SDL_GL_SetSwapInterval(1); //0 for immediate updates, 1 for updates synchronized with the vertical retrace, -1 for late swap tearing SDL_DisplayMode dispMode;