src/video/pandora/SDL_pandora.c
changeset 6382 64d54101773a
parent 6138 4c64952a58fb
child 6422 fd0ac1b56115
--- a/src/video/pandora/SDL_pandora.c	Tue Jul 31 16:55:09 2012 -0700
+++ b/src/video/pandora/SDL_pandora.c	Wed Aug 01 20:29:36 2012 -0400
@@ -796,15 +796,7 @@
 int
 PND_gl_getswapinterval(_THIS)
 {
-    SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
-
-    if (phdata->egl_initialized != SDL_TRUE) {
-        SDL_SetError("PND: GLES initialization failed, no OpenGL ES support");
-        return -1;
-    }
-
-    /* Return default swap interval value */
-    return phdata->swapinterval;
+    return ((SDL_VideoData *) _this->driverdata)->swapinterval;
 }
 
 void