summaryrefslogtreecommitdiffstats
path: root/src/demos/cg/runtime_ogl/cgGL_vertex_example.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/cg/runtime_ogl/cgGL_vertex_example.java')
-rw-r--r--src/demos/cg/runtime_ogl/cgGL_vertex_example.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/cg/runtime_ogl/cgGL_vertex_example.java b/src/demos/cg/runtime_ogl/cgGL_vertex_example.java
index f1f41dd..2a43fd6 100644
--- a/src/demos/cg/runtime_ogl/cgGL_vertex_example.java
+++ b/src/demos/cg/runtime_ogl/cgGL_vertex_example.java
@@ -228,8 +228,8 @@ public class cgGL_vertex_example implements GLEventListener
InitializeCube(CubeVertices);
/* Enable a single OpenGL light. */
- gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, LightDiffuse);
- gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, LightPosition);
+ gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, LightDiffuse, 0);
+ gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, LightPosition, 0);
gl.glEnable(GL.GL_LIGHT0);
if (false) { // #if 0
gl.glEnable(GL.GL_LIGHTING);