src/video/wayland/SDL_waylandwindow.c
changeset 9469 3f8d36ffd19d
parent 9468 d001cff818bb
child 9483 c79f20abeb1a
     1.1 --- a/src/video/wayland/SDL_waylandwindow.c	Sat Mar 28 19:43:46 2015 +0100
     1.2 +++ b/src/video/wayland/SDL_waylandwindow.c	Tue Apr 07 22:49:56 2015 -0400
     1.3 @@ -186,8 +186,7 @@
     1.4      data->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) data->egl_window);
     1.5      
     1.6      if (data->egl_surface == EGL_NO_SURFACE) {
     1.7 -        SDL_SetError("failed to create a window surface");
     1.8 -        return -1;
     1.9 +        return SDL_SetError("failed to create a window surface");;
    1.10      }
    1.11  
    1.12      if (data->shell_surface) {