Removed EGL14.SetSwapInterval(), because it breaks video initialization on Toshiba AT-330 with Android 4.0.3

This commit is contained in:
Sergii Pylypenko
2014-11-27 17:34:14 +02:00
parent a2157a2519
commit bc5ecca7b8

View File

@@ -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);