Fixed error return value in SDL_EGL_CreateSurface(), thanks to Mike Kasprzak
authorSam Lantinga <slouken@libsdl.org>
Mon, 02 Dec 2013 23:54:35 -0800
changeset 8045 3c2694255705
parent 8044 e84427ef8244
child 8046 e7c89b29932a
Fixed error return value in SDL_EGL_CreateSurface(), thanks to Mike Kasprzak
src/video/SDL_egl.c
--- a/src/video/SDL_egl.c	Mon Dec 02 19:51:48 2013 -0300
+++ b/src/video/SDL_egl.c	Mon Dec 02 23:54:35 2013 -0800
@@ -452,7 +452,7 @@
 SDL_EGL_CreateSurface(_THIS, NativeWindowType nw) 
 {
     if (SDL_EGL_ChooseConfig(_this) != 0) {
-        return -1;
+        return EGL_NO_SURFACE;
     }
     
     return _this->egl_data->eglCreateWindowSurface(