Use GLES 1.1 harmattan
authorAlberto Mardegan <mardy@users.sourceforge.net>
Sun, 22 Jan 2012 10:11:27 +0000 (12:11 +0200)
committerAlberto Mardegan <mardy@users.sourceforge.net>
Sun, 22 Jan 2012 10:11:27 +0000 (12:11 +0200)
share/video.c

index 6cc794e..2f8f209 100644 (file)
@@ -77,10 +77,11 @@ int video_mode(int f, int w, int h)
     SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE,    5);
     SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE,  16);
     SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+    SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
 
     /* Try to set the currently specified mode. */
 
-    if (SDL_SetVideoMode(w, h, 0, SDL_OPENGL | (f ? SDL_FULLSCREEN : 0)))
+    if (SDL_SetVideoMode(w, h, 0, SDL_OPENGLES | (f ? SDL_FULLSCREEN : 0)))
     {
         config_set_d(CONFIG_FULLSCREEN, f);
         config_set_d(CONFIG_WIDTH,      w);