pass sys.argv to glutInit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
import wx
|
||||
import sys
|
||||
|
||||
try:
|
||||
from wx import glcanvas
|
||||
@@ -230,7 +231,7 @@ class ConeCanvas(MyCanvasBase):
|
||||
# position viewer
|
||||
glTranslatef(0.0, 0.0, -2.0);
|
||||
#
|
||||
glutInit([])
|
||||
glutInit(sys.argv)
|
||||
|
||||
|
||||
def OnDraw(self):
|
||||
|
Reference in New Issue
Block a user