Hi,

I have a window whose viewport doesn't fill it, and I want to set the area
outside the viewport to a specific color.

I'm using:
  _gc = osg::GraphicsContext::createGraphicsContext(_traits);
  _gc->setClearColor( osg::Vec4f(1.f, 0.f, 0.f, 1.0f) );
  _gc->setClearMask( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );

This is osg 2.8.3 on Centos, Quadro FX 4600.

This works fine when traits->quadBufferStereo is false, but when it's true,
I only get one of the buffers cleared.

Any ideas?  I suspect the fix is easy but hard to find, at least for me.

Many thanks,

John


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to