[osg-users] PolygonMode::FRONT / BACK causes Warning

Ariasgore ariasgore at gmx.de
Wed Jul 23 06:43:12 PDT 2008


I am testing some Code and trying to look at some Wireframe Models, I use 
the following line of code, first using FRONT_AND_BACK PolygonMode

osg::PolygonMode * pm = new 
osg::PolygonMode(osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::LINE);

That works, both sides are rendered as wireframe, but then I tried to use 
FRONT or BACK only with

osg::PolygonMode * pm = new osg::PolygonMode(osg::PolygonMode::FRONT, 
osg::PolygonMode * pm = new osg::PolygonMode(osg::PolygonMode::BACK, 
These are the valid modes I found in the documentation and they work, I see 
either only Front as Wireframe or the Back.

But my console window is flooded with following warning:
"Warning: detected OpenGL error  'invalid enumerant' after 

Where is the problem here?


More information about the osg-users mailing list