Removed EGL14.SetSwapInterval(), because it breaks video initialization on Toshiba AT-330 with Android 4.0.3
This commit is contained in:
@@ -921,11 +921,6 @@ public class GLSurfaceView_SDL extends SurfaceView implements SurfaceHolder.Call
|
|||||||
mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
|
mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
|
||||||
mEglContext);
|
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();
|
GL gl = mEglContext.getGL();
|
||||||
if (mGLWrapper != null) {
|
if (mGLWrapper != null) {
|
||||||
gl = mGLWrapper.wrap(gl);
|
gl = mGLWrapper.wrap(gl);
|
||||||
|
|||||||
Reference in New Issue
Block a user