There's no flag - but you can register your own python error checking function with PyOpenGL 3.x: from OpenGL import error error.ErrorChecker.registerChecker( myAlternateFunction ) either an empty function or possibly None will disable the glGetError call. Note that depending on the card/driver most of the glGetError slowness can have nothing to do with python, so there can be real benefit to disabling error checking entirely. I'm not aware of a similar feature with PyOpenGL 2.x.
However for my particular uses, I don't want to disable error checking - I just want the cheapest error checking I can get, which is something I like about 2.x. On Mon, Mar 24, 2008 at 4:29 PM, René Dudfield <[EMAIL PROTECTED]> wrote: > I think there is a way to disable the error checking with a flag > somehow with 3.x... or if there isn't there should be. > > > > > On Mon, Mar 24, 2008 at 7:02 PM, Brian Fisher <[EMAIL PROTECTED]> wrote: > > Hey all, > > after a long period of frustration with PyOpenGL 3.x and py2exe not > > working, I solved my problems by building PyOpenGL 2.0.1.9 for Python > > 2.5 on windows (I labeled it as PyOpenGL 2.1.0 to be distinct): > > > > http://thorbrian.com/pyopengl/builds.php > > > > It has no numeric support, and it doesn't include TOGL (tcl/tk + > > PyOpenGL) but it works just as well as PyOpenGL ever did besides, and > > it works with py2exe out of the box (no more "version" file hack). And > > being a compiled SWIG wrapper (like all pyopengl 2.x) it is able to > > raise an exception for glGetError errors after every call with minimal > > overhead (as opposed to PyOpenGL 3.x and pyglet - both of which use > > ctypes) > > > > I will be using it to build my exe's for pyweek (I believe it meets > > the letter and spirit of the compo given that it is just PyOpenGL > > 2.0.1.9 which has been out for like forever) > > > > > > > > > > On Sun, Mar 16, 2008 at 4:01 PM, Brian Fisher <[EMAIL PROTECTED]> wrote: > > > At the moment I'm thinking that PyOpenGL 2.0 is for me (it's compiled > > > C code, no ctypes), all it needs is a python 2.5 windows installer, so > > > I'm gonna try and tackle that (I want to be able to build exe's for > > > pyweek...) > > > > > >