Hi Terry,

On Thu, 2005-04-28 at 15:37 -0500, Terry Welsh wrote:
> Hi,
> If I order my code in certain ways, sometimes my rendering will stop
> working and I'll start seeing endless warning messages like this:
> 
> WARNING: TextureChunk::initialize params failed: invalid operation (0x502)
> WARNING: textureShader precheck failed: invalid operation (0x502)
> WARNING: TextureChunk::initialize params failed: invalid operation (0x502)
> WARNING: textureShader precheck failed: invalid operation (0x502)
> WARNING: TextureChunk::initialize params failed: invalid operation (0x502)
> WARNING: textureShader precheck failed: invalid operation (0x502)
> WARNING: textureShader precheck failed: invalid operation (0x502)
> WARNING: textureShader precheck failed: invalid operation (0x502)
> WARNING: textureShader precheck failed: invalid operation (0x502)
> ....
> 
> If I reorder my code or comment parts out, I can usually get the
> warnings to stop and my rendering to work again.  But I haven't been
> able to figure out the actual cause of all this.  The only unusual
> thing about my app is that I'm combining OpenGL calls with OpenSG in
> order to do some multipass rendering and other effects.  Any
> suggestions?

have you tried running it through an OpenGL debugger like GLIntercept or
bugle? Alternatively you can try to add a glGetError() before you call
OpenSG, to make sure the error is not caused by something outside of
OpenSG.

Looking at the places this is coming from my guess would be something
about the texture unit or activated textures. Try making sure that
texturing is disabled and unit 0 is active before calling OpenSG.

Hope it helps

        Dirk



-- 
-- Dirk Reiners               OpenSG Forum             [EMAIL PROTECTED] 
-- The OpenSG Open Source Scenegraph:            http://www.opensg.org
-- Join the list at    http://lists.sf.net/lists/listinfo/opensg-users



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to