Hi,
I would like to ask If someone can help me with a problem.I somehow extract and
changed the mesh of an object. Now I'm trying to render it on screen via
drawable. I just need to know where is mistake.
Source code:
void PrDrawable::PrepareDisplayList(osg::RenderInfo & renderInfo) const
{
glNewList(prDisplayList, GL_COMPILE);
glBegin(GL_TRIANGLES);
glVertex3f(1.0,1.0,1.0);
glVertex3f(-1.0,-1.0,-1.0);
glVertex3f(-1.0,1.0,1.0);
glEnd();
glEndList();
}
the error message:
Debug: Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,)
Please help me
Thank you!
Cheers,
Lukas
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26652#26652
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org