New vsync code

This commit is contained in:
Caspian Rychlik-Prince 2003-10-20 14:17:47 +00:00
parent b6390ef976
commit 2714842095
10 changed files with 117 additions and 72 deletions

View file

@ -315,9 +315,7 @@ public class FullScreenWindowedTest {
GL.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
//sync frame (only works on windows)
if (GLCaps.WGL_EXT_swap_control) {
GL.wglSwapIntervalEXT(1);
}
Window.setVSyncEnabled(true);
}
/**