Browse Source

Android: prevent the error message from SDL_EGL_CreateSurface() to be masked.

Sylvain Becker 6 years ago
parent
commit
23478642bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/android/SDL_androidwindow.c

+ 1 - 1
src/video/android/SDL_androidwindow.c

@@ -92,7 +92,7 @@ Android_CreateWindow(_THIS, SDL_Window * window)
         if (data->egl_surface == EGL_NO_SURFACE) {
             ANativeWindow_release(data->native_window);
             SDL_free(data);
-            retval = SDL_SetError("Could not create GLES window surface");
+            retval = -1;
             goto endfunction;
         }
     }