Fixed error return value in SDL_EGL_CreateSurface(), thanks to Mike Kasprzak
This commit is contained in:
parent
a2388728b7
commit
f728c688d1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue