mirror of
https://github.com/encounter/SDL.git
synced 2025-12-16 08:27:05 +00:00
Fixed a bunch of SwapWindow calls that needed their return value updated
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
SDL_EGL_CreateContext_impl(Android)
|
||||
SDL_EGL_MakeCurrent_impl(Android)
|
||||
|
||||
void
|
||||
int
|
||||
Android_GLES_SwapWindow(_THIS, SDL_Window * window)
|
||||
{
|
||||
/* The following two calls existed in the original Java code
|
||||
@@ -49,7 +49,7 @@ Android_GLES_SwapWindow(_THIS, SDL_Window * window)
|
||||
|
||||
/*_this->egl_data->eglWaitNative(EGL_CORE_NATIVE_ENGINE);
|
||||
_this->egl_data->eglWaitGL();*/
|
||||
SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
|
||||
return SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
SDL_GLContext Android_GLES_CreateContext(_THIS, SDL_Window * window);
|
||||
int Android_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
|
||||
void Android_GLES_SwapWindow(_THIS, SDL_Window * window);
|
||||
int Android_GLES_SwapWindow(_THIS, SDL_Window * window);
|
||||
int Android_GLES_LoadLibrary(_THIS, const char *path);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user