From 8cb7bac09f0ed07041df451f7a5d5d04865f9f14 Mon Sep 17 00:00:00 2001 From: fysx Date: Sun, 25 May 2014 16:30:27 +0200 Subject: [PATCH] using latest SDL_androidgl.c that removes some calls to eglWaitXXX() calls --- jni/SDL2-2.0.3/src/video/android/SDL_androidgl.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jni/SDL2-2.0.3/src/video/android/SDL_androidgl.c b/jni/SDL2-2.0.3/src/video/android/SDL_androidgl.c index 1f933ce3..b452b5c7 100644 --- a/jni/SDL2-2.0.3/src/video/android/SDL_androidgl.c +++ b/jni/SDL2-2.0.3/src/video/android/SDL_androidgl.c @@ -41,9 +41,13 @@ SDL_EGL_MakeCurrent_impl(Android) void Android_GLES_SwapWindow(_THIS, SDL_Window * window) { - /* FIXME: These two functions were in the Java code, do we really need them? */ - _this->egl_data->eglWaitNative(EGL_CORE_NATIVE_ENGINE); - _this->egl_data->eglWaitGL(); + /* The following two calls existed in the original Java code + * If you happen to have a device that's affected by their removal, + * please report to Bugzilla. -- Gabriel + */ + + /*_this->egl_data->eglWaitNative(EGL_CORE_NATIVE_ENGINE); + _this->egl_data->eglWaitGL();*/ SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface); }