Fixed pointer from integer warning and bug if compiled without EGL.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 25 Dec 2013 16:57:59 +0100
changeset 8080 bf767de0bcdc
parent 8079 f8ef325265ed
child 8081 402b8c313246
Fixed pointer from integer warning and bug if compiled without EGL.
src/video/windows/SDL_windowsopengl.c
--- a/src/video/windows/SDL_windowsopengl.c	Wed Dec 25 16:53:39 2013 +0100
+++ b/src/video/windows/SDL_windowsopengl.c	Wed Dec 25 16:57:59 2013 +0100
@@ -604,8 +604,9 @@
         
         return WIN_GLES_CreateContext(_this, window);
 #else
-        return SDL_SetError("SDL not configured with EGL support");
-#endif        
+        SDL_SetError("SDL not configured with EGL support");
+        return NULL;
+#endif
     }
 
     if (_this->gl_config.share_with_current_context) {