Re: [PyOpenGL-Users] bus error on gluNewQuadric()
Brought to you by:
mcfletch
From: altern <en...@al...> - 2004-10-25 08:29:31
|
hi dave >>the only thing i changed is that i was actually creating the q = >>gluNewQuadric() as a to reuse it so that i dont do it everytime i create a >>circle. Now i put it into the drawing function and there is no problem. I >>guess osx didnt like to reuse the object and needs to create one new every >>time. > > > OSX's OpenGL implementation requires a GL context to exist before you can > create a quadric; this also applies to Linux & probably other Unixes, > Windows happens to be different and lets you create a quadric any time. > > So, if you move your gluNewQuadric() call to happen _after_ you've opened > a window (for instance, after calling glutCreateWindow), then it should be > fine, and you'll only need to create it once. great. now it does makes sense. thanks > -- > Dave Pape Assistant Professor > dav...@ac... Department of Media Study > http://resumbrae.com/ University at Buffalo > -- enrike |