[Plib-users] invalid OpenGL context problem
Brought to you by:
sjbaker
From: Roy W. <ro...@ce...> - 2002-01-07 16:45:25
|
This is an odd problem that I'm hoping that someone can shed some light on.... I'm having trouble with PLIB on my machine (RedHat 7.2, exact specs below, if that matters; and yes, all the underlying X/OpenGL stuff is fine-- I checked). The specific symptoms are that calls to functions like puInit() are failing with a warning of "puInit() called with an invalid OpenGL context." This occurs even for simple examples in the PLIB demo tarball. After some investigation, I've determined that the glut calls to set up the window are all completing correctly, but it seems as if there is a delay in the window creation such that puInit() is called before the window actually appears. I tried delaying the call to puInit() and can actually see the window pop, but other calls to PLIB functions cause things to eventually crap out (I may be able to tweak it into working correctly, but it was getting late and I was tired). So, any of you folks ever run into anything like this before? Any suggestions? -Roy p.s. As promised, the system specs are RedHat 7.2, XFree86 4.1, Mesa 3.4.7, glut version that ships with Mesa 3.4.7 (sorry-- can't get at my system right now to determine the glut version), all on an AMD K6-II 500 MHz box, FIC 503A motherboard (VIA chipset), Matrox G450 videocard. I have tested out glut and yes, it works just fine (the gears demo runs at about 500 frames/sec), as does XFree86 and OpenGL in general. |