Fix for bug # 1592263, changing 'glLightModel' to 'glLightModelfv'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-11-07 21:42:30 +00:00
parent 047fa46b8a
commit de8137ac5c

View 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):