Android: prevent the error message from SDL_EGL_CreateSurface() to be masked.
authorSylvain Becker <sylvain.becker@gmail.com>
Thu, 03 Jan 2019 16:22:33 +0100
changeset 124979e13f3286831
parent 12496 93771c30420b
child 12498 c2e223dc5da9
Android: prevent the error message from SDL_EGL_CreateSurface() to be masked.
src/video/android/SDL_androidwindow.c
     1.1 --- a/src/video/android/SDL_androidwindow.c	Thu Jan 03 14:18:06 2019 +0100
     1.2 +++ b/src/video/android/SDL_androidwindow.c	Thu Jan 03 16:22:33 2019 +0100
     1.3 @@ -92,7 +92,7 @@
     1.4          if (data->egl_surface == EGL_NO_SURFACE) {
     1.5              ANativeWindow_release(data->native_window);
     1.6              SDL_free(data);
     1.7 -            retval = SDL_SetError("Could not create GLES window surface");
     1.8 +            retval = -1;
     1.9              goto endfunction;
    1.10          }
    1.11      }