src/render/opengles/SDL_render_gles.c
changeset 5209 115fff0641ee
parent 5204 daa5463466c5
child 5224 2178ffe17222
--- a/src/render/opengles/SDL_render_gles.c	Sun Feb 06 09:02:10 2011 -0800
+++ b/src/render/opengles/SDL_render_gles.c	Sun Feb 06 10:22:25 2011 -0800
@@ -184,6 +184,9 @@
 
     renderer->info.flags = SDL_RENDERER_ACCELERATED;
 
+    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
+    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
+
     data->context = SDL_GL_CreateContext(window);
     if (!data->context) {
         GLES_DestroyRenderer(renderer);