Re: [Plib-users] Re: plib-users digest, Vol 1 #688 - 4 msgs
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2005-02-24 00:39:03
|
sinan koc wrote: > Now there is no compiling error but when I trying to run the program > getting "puInit called without a valid OpenGL context" Well, that would be the problem then! You have to have a valid OpenGL rendering context (a window) opened before you can initialise any PLIB modules - and each module must be initialised before you can call *any* of it's other functions. Because all manner of horrible things go wrong if you don't do that, we wrote the code to check for a valid rendering context and fatal out if you didn't get it right. So, you need to move your puInit call down until AFTER the graphics context has been established. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |