summaryrefslogtreecommitdiffstats
path: root/src/demos/cg/runtime_ogl
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/cg/runtime_ogl')
-rw-r--r--src/demos/cg/runtime_ogl/cgGL_vertex_example.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demos/cg/runtime_ogl/cgGL_vertex_example.java b/src/demos/cg/runtime_ogl/cgGL_vertex_example.java
index e8ca280..1f165c8 100644
--- a/src/demos/cg/runtime_ogl/cgGL_vertex_example.java
+++ b/src/demos/cg/runtime_ogl/cgGL_vertex_example.java
@@ -269,7 +269,7 @@ public class cgGL_vertex_example implements GLEventListener
public static void main(String[] argv)
{
Frame frame = new Frame("NVidia Cg Toolkit \"cgGL_vertex_example\" demo");
- GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
+ GLCanvas canvas = new GLCanvas();
canvas.addGLEventListener(new cgGL_vertex_example());
frame.add(canvas);