mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed error return value in SDL_EGL_CreateSurface(), thanks to Mike Kasprzak
This commit is contained in:
parent
d0d07decc1
commit
013d99823d
@ -452,7 +452,7 @@ EGLSurface *
|
|||||||
SDL_EGL_CreateSurface(_THIS, NativeWindowType nw)
|
SDL_EGL_CreateSurface(_THIS, NativeWindowType nw)
|
||||||
{
|
{
|
||||||
if (SDL_EGL_ChooseConfig(_this) != 0) {
|
if (SDL_EGL_ChooseConfig(_this) != 0) {
|
||||||
return -1;
|
return EGL_NO_SURFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return _this->egl_data->eglCreateWindowSurface(
|
return _this->egl_data->eglCreateWindowSurface(
|
||||||
|
Loading…
Reference in New Issue
Block a user