From 65772e451c01506d868f1ec7e2bbfb366a4bb35e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 30 May 2008 20:15:31 +0000 Subject: [PATCH] Added applyMaskAction(CLEAR_COLOR) to Camera::setClearColor() to enable proper inheritance --- include/osg/Camera | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/Camera b/include/osg/Camera index 1225091d7..ca60948ea 100644 --- a/include/osg/Camera +++ b/include/osg/Camera @@ -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; }