Fixes typo in EGL code (thanks jmcfarlane!)
authorGabriel Jacobo <gabomdq@gmail.com>
Mon, 26 Aug 2013 14:23:18 -0300
changeset 7702 83878644c8e6
parent 7701 7d3fff679fae
child 7703 982abfefd19d
Fixes typo in EGL code (thanks jmcfarlane!)
src/video/SDL_egl.c
--- a/src/video/SDL_egl.c	Sun Aug 25 21:28:03 2013 -0400
+++ b/src/video/SDL_egl.c	Mon Aug 26 14:23:18 2013 -0300
@@ -332,8 +332,8 @@
 {
     EGLBoolean status;
     
-    if (_this->egl_data) {
-        return SDL_SetError("OpenGL ES context not active");
+    if (!_this->egl_data) {
+        return SDL_SetError("EGL not initialized");
     }
     
     status = _this->egl_data->eglSwapInterval(_this->egl_data->egl_display, interval);
@@ -348,8 +348,8 @@
 int
 SDL_EGL_GetSwapInterval(_THIS)
 {
-    if (_this->egl_data) {
-        return SDL_SetError("OpenGL ES context not active");
+    if (!_this->egl_data) {
+        return SDL_SetError("EGL not initialized");
     }
     
     return _this->egl_data->egl_swapinterval;