Added applyMaskAction(CLEAR_COLOR) to Camera::setClearColor() to enable proper inheritance
This commit is contained in:
@@ -91,7 +91,7 @@ class OSG_EXPORT Camera : public Transform, public CullSettings
|
|||||||
|
|
||||||
/** Set the clear color used in glClearColor(..).
|
/** Set the clear color used in glClearColor(..).
|
||||||
* glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true*/
|
* glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true*/
|
||||||
void setClearColor(const osg::Vec4& color) { _clearColor=color; }
|
void setClearColor(const osg::Vec4& color) { _clearColor=color; applyMaskAction(CLEAR_COLOR); }
|
||||||
|
|
||||||
/** Get the clear color.*/
|
/** Get the clear color.*/
|
||||||
const osg::Vec4& getClearColor() const { return _clearColor; }
|
const osg::Vec4& getClearColor() const { return _clearColor; }
|
||||||
|
|||||||
Reference in New Issue
Block a user