Wayland: changed a few "SetError(); return -1;" to "return SetError()".
This commit is contained in:
parent
8dba903d57
commit
96c35e69fb
3 changed files with 3 additions and 6 deletions
|
@ -186,8 +186,7 @@ int Wayland_CreateWindow(_THIS, SDL_Window *window)
|
|||
data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->egl_window);
|
||||
|
||||
if (data->egl_surface == EGL_NO_SURFACE) {
|
||||
SDL_SetError("failed to create a window surface");
|
||||
return -1;
|
||||
return SDL_SetError("failed to create a window surface");;
|
||||
}
|
||||
|
||||
if (data->shell_surface) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue