Added applyMaskAction(CLEAR_COLOR) to Camera::setClearColor() to enable proper inheritance

This commit is contained in:
Robert Osfield
2008-05-30 20:15:31 +00:00
parent c714e46ff6
commit 65772e451c

View File

@@ -91,7 +91,7 @@ class OSG_EXPORT Camera : public Transform, public CullSettings
/** Set the clear color used in glClearColor(..).
* 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.*/
const osg::Vec4& getClearColor() const { return _clearColor; }