Added support for OpenGL mode black listing to provide better support
for extension checking and invalidation of OpenGL modes associated with extensions.
This commit is contained in:
@@ -270,6 +270,14 @@ class OSG_EXPORT StateAttribute : public Object
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Check the modes associated with this StateAttribute are supported by current OpenGL drivers,
|
||||
* and if not set the associated mode in osg::State to be black listed/invalid.
|
||||
* Return true if all associated modes are valid.*/
|
||||
virtual bool checkValididityOfAssociatedModes(osg::State&) const
|
||||
{
|
||||
// default to no black listed GLMode's associated with use of the StateAttribute.
|
||||
return true;
|
||||
}
|
||||
|
||||
struct Callback : public virtual osg::Object
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user