From 013d99823d126c998f17f360c113e774823ed67a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 2 Dec 2013 23:54:35 -0800 Subject: [PATCH] Fixed error return value in SDL_EGL_CreateSurface(), thanks to Mike Kasprzak --- src/video/SDL_egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 4b87f19d9481b..1e66fb7d9a12f 100644 --- a/src/video/SDL_egl.c +++ b/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(