diff options
author | Kenneth Russel <[email protected]> | 2005-07-27 00:30:07 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-07-27 00:30:07 +0000 |
commit | c907a7067c06917cb19b809084e3ecd03e74586f (patch) | |
tree | ae784306985417b71f009560a737bc7e71558c57 /src | |
parent | 9f3bf8307320cf80f67e0af707614f0304507731 (diff) |
Refactored platform extensions out of the GL interface and
implementation and into their own objects according to the JSR-231
expert group's resolutions. Moved the interfaces declaring these
extensions into the platform-specific implementation directories and
added a loosely-specified GL.getPlatformGLExtensions(). This will
shrink the size of the platform-independent jar file considerably as
the implementing class for the public GL interface is now no longer
replicated for each platform. The build process is also simplified a
fair bit; more simplifications are possible.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@105 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src')
-rw-r--r-- | src/demos/vertexBufferObject/VertexBufferObject.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/demos/vertexBufferObject/VertexBufferObject.java b/src/demos/vertexBufferObject/VertexBufferObject.java index f6dab6c..ef05b69 100644 --- a/src/demos/vertexBufferObject/VertexBufferObject.java +++ b/src/demos/vertexBufferObject/VertexBufferObject.java @@ -279,13 +279,7 @@ public class VertexBufferObject { GLU glu = drawable.getGLU(); // Try and disable synch-to-retrace for fastest framerate - if (gl.isFunctionAvailable("wglSwapIntervalEXT")) { - System.err.println("wglSwapIntervalEXT available; disabling sync-to-refresh for best framerate"); - gl.wglSwapIntervalEXT(0); - } - else { - System.err.println("wglSwapIntervalEXT not available; cannot disable sync-to-refresh"); - } + gl.setSwapInterval(0); try { initExtension(gl, "GL_ARB_vertex_buffer_object"); |