]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for bug # 1592263, changing 'glLightModel' to 'glLightModelfv'
authorRobin Dunn <robin@alldunn.com>
Tue, 7 Nov 2006 21:42:30 +0000 (21:42 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 7 Nov 2006 21:42:30 +0000 (21:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/GLCanvas.py

index 89b984df694b15fa93532faa945fed7bda6cd672..dd8716e63eece3ee03c51af1b1df043f70a2be4c 100644 (file)
@@ -219,7 +219,7 @@ class ConeCanvas(MyCanvasBase):
         glLight(GL_LIGHT0, GL_DIFFUSE, [1.0, 1.0, 1.0, 1.0])
         glLight(GL_LIGHT0, GL_SPECULAR, [1.0, 1.0, 1.0, 1.0])
         glLight(GL_LIGHT0, GL_POSITION, [1.0, 1.0, 1.0, 0.0])
-        glLightModel(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0])
+        glLightModelfv(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0])
         glEnable(GL_LIGHTING)
         glEnable(GL_LIGHT0)
         glDepthFunc(GL_LESS)
@@ -229,7 +229,8 @@ class ConeCanvas(MyCanvasBase):
         glMatrixMode(GL_MODELVIEW)
         # position viewer
         glTranslatef(0.0, 0.0, -2.0);
-
+        #
+        glutInit([])
 
 
     def OnDraw(self):