summaryrefslogtreecommitdiffstats
path: root/src/demos/cg
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/cg')
-rw-r--r--src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java b/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java
index 3ceabc0..d0b7dc1 100644
--- a/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java
+++ b/src/demos/cg/runtime_ogl_vertex_fragment/runtime_ogl_vertex_fragment.java
@@ -67,9 +67,6 @@ public class runtime_ogl_vertex_fragment implements GLEventListener
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
canvas.addGLEventListener(new runtime_ogl_vertex_fragment());
- // Use debug pipeline
- canvas.setGL(new DebugGL(canvas.getGL()));
-
frame.add(canvas);
frame.setSize(512, 512);
final Animator animator = new Animator(canvas);
@@ -94,6 +91,9 @@ public class runtime_ogl_vertex_fragment implements GLEventListener
public void init(GLDrawable drawable)
{
+ // Use debug pipeline
+ // drawable.setGL(new DebugGL(drawable.getGL()));
+
GL gl = drawable.getGL();
// Basic Cg setup; register a callback function for any errors