Force VSYNC to fix video issues on Nvidia Shield
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user