From Stephan Huber, remove Platform specific handling of multi-sample setup as its

now supported within Producer in a generic way.  From Robert Osfield fix to the parameter ordering
This commit is contained in:
Robert Osfield
2006-06-27 12:08:30 +00:00
parent bc9c949d53
commit c71fc9fcb6

View File

@@ -588,16 +588,8 @@ bool OsgCameraGroup::realize()
if (_ds->getMultiSamples())
{
#if defined( GLX_SAMPLES_SGIS )
rs_vc->addExtendedAttribute( GLX_SAMPLES_SGIS, _ds->getNumMultiSamples());
#endif
#if defined( GLX_SAMPLES_BUFFER_SGIS )
rs_vc->addExtendedAttribute( GLX_SAMPLES_BUFFER_SGIS, 1);
#endif
#ifdef WIN32
rs_vc->addExtendedAttribute(WGL_SAMPLE_BUFFERS_ARB, GL_TRUE);
rs_vc->addExtendedAttribute(WGL_SAMPLES_ARB, _ds->getNumMultiSamples());
#endif
rs_vc->addAttribute(Producer::VisualChooser::SampleBuffers, 1);
rs_vc->addAttribute(Producer::VisualChooser::Samples, _ds->getNumMultiSamples());
}
}
}