diff options
author | Carsten Weisse <[email protected]> | 2007-01-11 23:36:21 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2007-01-11 23:36:21 +0000 |
commit | 8d4f24b415303af4d33dcc816c92f92931d0b803 (patch) | |
tree | 903eb3ce31ff8ff1b04f8168a33976faf6250ddb /src/jake2/render/fast/Misc.java | |
parent | b0da0689d0af92b409e775a7607a3a0683c43eb9 (diff) |
add setSwapInterval() for vsync (works on Win32 and Mac OS X)
turn it off on console:
gl_swapinterval 0
turn it on:
gl_swapinterval 1
Diffstat (limited to 'src/jake2/render/fast/Misc.java')
-rw-r--r-- | src/jake2/render/fast/Misc.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/jake2/render/fast/Misc.java b/src/jake2/render/fast/Misc.java index e1b47e6..d611f34 100644 --- a/src/jake2/render/fast/Misc.java +++ b/src/jake2/render/fast/Misc.java @@ -2,7 +2,7 @@ * Misc.java * Copyright (C) 2003 * - * $Id: Misc.java,v 1.3 2006-11-22 15:05:39 cawe Exp $ + * $Id: Misc.java,v 1.4 2007-01-11 23:36:21 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -262,6 +262,12 @@ public final class Misc extends Mesh { gl.glEnableClientState(GL_VERTEX_ARRAY); gl.glClientActiveTextureARB(TEXTURE0); gl.glEnableClientState(GL_TEXTURE_COORD_ARRAY); + + /* + * perspective correction + */ + //gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); + } void GL_UpdateSwapInterval() @@ -271,9 +277,7 @@ public final class Misc extends Mesh { gl_swapinterval.modified = false; if ( !gl_state.stereo_enabled ) { - if (qwglSwapIntervalEXT) { - // ((WGL)gl).wgl.glSwapIntervalEXT((int)gl_swapinterval.value); - } + gl.setSwapInterval((int) gl_swapinterval.value); } } } |