From 23478642bdd3ee78ea4ec7cca5c87134c00ed45a Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Thu, 3 Jan 2019 16:22:33 +0100 Subject: [PATCH] Android: prevent the error message from SDL_EGL_CreateSurface() to be masked. --- src/video/android/SDL_androidwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/android/SDL_androidwindow.c b/src/video/android/SDL_androidwindow.c index 70fe4a1834a78..e4a988994c551 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; } }