From c907a7067c06917cb19b809084e3ecd03e74586f Mon Sep 17 00:00:00 2001
From: Kenneth Russel <kbrussel@alum.mit.edu>
Date: Wed, 27 Jul 2005 00:30:07 +0000
Subject: 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
---
 src/demos/vertexBufferObject/VertexBufferObject.java | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

(limited to 'src/demos/vertexBufferObject')

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");
-- 
cgit v1.2.3