Commit 23478642bdd3ee78ea4ec7cca5c87134c00ed45a

Sylvain Becker 2019-01-03T16:22:33

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/android/SDL_androidwindow.c b/src/video/android/SDL_androidwindow.c
index 70fe4a1..e4a9889 100644
--- a/src/video/android/SDL_androidwindow.c
+++ b/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;
         }
     }