Correcting the glLightModel with glLightModelfv fix the script. The mouse event are not detected however.
On Wed, Dec 9, 2009 at 7:48 PM, Michele Mattioni <[email protected]> wrote: > The patch works, but the light model seem not to be recognised: > > matti...@triton:examples(local)$ python Shapes.py > Traceback (most recent call last): > File "/usr/lib/pymodules/python2.6/gtk-2.0/gtk/gtkgl/apputils.py", line > 243, in __realize > self.glscene.init() > File "Shapes.py", line 156, in init > glLightModel(GL_LIGHT_MODEL_AMBIENT, self.light_ambient) > NameError: global name 'glLightModel' is not defined > > > > On Wed, Dec 9, 2009 at 5:55 PM, Mukund Sivaraman <[email protected]> wrote: > >> On Wed, Dec 09, 2009 at 11:13:57AM +0000, Michele Mattioni wrote: >> > Hello list, >> > >> > I downloaded the python binding from git gnome today and I tried to run >> the >> > Shapes example but I've got a segfault >> > >> > matti...@triton:examples(master)$ python Shapes.py >> > Segmentation fault >> >> See if the attached patch fixes this crash. >> >> Mukund >> > >
0002-Corrected-the-lightModel-with-the-float-array.patch
Description: Binary data
_______________________________________________ gtkglext-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkglext-list
