Browse Source

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

Sylvain Becker 6 năm trước cách đây
mục cha
commit
23478642bd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
         }
     }