Force VSYNC to fix video issues on Nvidia Shield

This commit is contained in:
pelya
2014-11-06 20:48:03 +02:00
parent bc31633c21
commit 088f43c8c8
3 changed files with 6 additions and 3 deletions

View File

@@ -922,7 +922,8 @@ public class GLSurfaceView_SDL extends SurfaceView implements SurfaceHolder.Call
mEglContext);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {
EGL14.eglSwapInterval(mEglDisplay, 1);
// 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();