diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 4b87f19d9..1e66fb7d9 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(