On 8/8/06, Frans Fürst <[EMAIL PROTECTED]> wrote:
Hi again,

after Daniel suggested me to use QGLPixelBuffer to render offscreen I did,
and nearly everything works perfektly now. Except the backround color is not
set to the color I specified with setClearColor() and every
SceneView::draw() generates an error message:

"RenderStage::drawInner(,) OpenGL errorNo= 0x502"

This error is:

 #define GL_INVALID_OPERATION              0x0502

I'm pretty sure the same code rendering onto a normal GL graphics context
doesn't throw this error.

What am I doing wrong? Can you help me with that?

I am afraid I'd need to be clarevoyant to be able to divine what might be wrong.

You'll need to step through things at your and in a really mathodical
way.  First up I'd recommend try using the CVS version of the OSG, it
contains various bug fixes, its a long shot but there is a chance it
may help.

Next up enable more fine grained error checking via:

 sceneview->getState()->setCheckForGLErrors(osg::State::ONCE_PER_ATTRIBUTE);

Next up do you have more than one graphics context in your app??

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to