Parcourir la source

Fixed pointer from integer warning and bug if compiled without EGL.

Philipp Wiesemann il y a 11 ans
Parent
commit
87ad7a1c50
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      src/video/windows/SDL_windowsopengl.c

+ 3 - 2
src/video/windows/SDL_windowsopengl.c

@@ -604,8 +604,9 @@ WIN_GL_CreateContext(_THIS, SDL_Window * window)
         
         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) {