Parcourir la source

Fixed error return value in SDL_EGL_CreateSurface(), thanks to Mike Kasprzak

Sam Lantinga il y a 11 ans
Parent
commit
013d99823d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/video/SDL_egl.c

+ 1 - 1
src/video/SDL_egl.c

@@ -452,7 +452,7 @@ EGLSurface *
 SDL_EGL_CreateSurface(_THIS, NativeWindowType nw) 
 {
     if (SDL_EGL_ChooseConfig(_this) != 0) {
-        return -1;
+        return EGL_NO_SURFACE;
     }
     
     return _this->egl_data->eglCreateWindowSurface(