From bc5ecca7b89d5d3323a4e3ba422a32c3e3a1481c Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Thu, 27 Nov 2014 17:34:14 +0200 Subject: [PATCH] Removed EGL14.SetSwapInterval(), because it breaks video initialization on Toshiba AT-330 with Android 4.0.3 --- project/java/GLSurfaceView_SDL.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/project/java/GLSurfaceView_SDL.java b/project/java/GLSurfaceView_SDL.java index 7854ed831..e079b8c9a 100644 --- a/project/java/GLSurfaceView_SDL.java +++ b/project/java/GLSurfaceView_SDL.java @@ -921,11 +921,6 @@ public class GLSurfaceView_SDL extends SurfaceView implements SurfaceHolder.Call mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); - if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) { - // TODO: mixing different EGL APIs, they call the same C API underneath - EGL14.eglSwapInterval(EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY), 1); - } - GL gl = mEglContext.getGL(); if (mGLWrapper != null) { gl = mGLWrapper.wrap(gl);