Re: [Plib-users] Library Initialization
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-10-08 15:23:24
|
Elad Lahav wrote: > > I have tried a couple of programmes based on plib, and encountered the same > result. The plib libraries will not initialize, claiming a GL context was > not created. Well, it PLIB calls 'glXGetCurrentContext()' to test for a valid GL context. If that test fails then (somehow) you are not getting a valid context. > I have checked the source of these applications (FlightGear and > some Tux game), and seen that glutInit is called, so it should have worked. Well, only if glutInit managed to find a valid OpenGL context. Are you sure your OpenGL is correctly installed? Do (for example) the GLUT demo programs work? > I am using RedHat 7.0, kernel 2.4.0-test7, XFree86 4.0.1 with a 3dfx Voodoo3 > 3000. Well, I know that FlightGear and both Tux games that use PLIB (TuxKart, TuxAQFH do, TuxRacer doesn't) all work just fine with RedHat/Xfree4.0.1/Voodoo-3... that's a very well tested configuration....although the 2.4.0-test7 kernel is pretty suspicious. I think you should back up a little and try the GLUT/Mesa test programs. If those work, pick one of them and add a call to glXGetCurrentContext just after glutInit and check that it returns a non-NULL result. If all that works as expected then it's a PLIB problem - so come back to this list and we'll see what's going on. If those tests fail - then it's not a problem with either of the games or PLIB and you'll need to take it up with the Mesa team. (www.mesa3d.org) So, either it's the Kernel (I doubt it) or your Mesa installation (with all that DRI stuff, it can get tricky). -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |