From 291d253161630aa08602fec072b6b3ee35e943b0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Sep 2007 13:39:55 +0000 Subject: [PATCH] From Mathias Froenlich, "have a problem with the SunOS CC. It does not like that the prototype of ClipNode::setStateSetModes() differs from implementation of that function in the constness of the second parameter. On SunOS it compiles fine, but I get link errors when the variant that is declared in the header is referenced. The attached src/osg/ClipNode.cpp file removes the const qualifier from the implementation to match exactly the prototype in the header file. The file is based on revision 7386 as of today. " --- src/osg/ClipNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/ClipNode.cpp b/src/osg/ClipNode.cpp index e042de4f3..7d1ef7f47 100644 --- a/src/osg/ClipNode.cpp +++ b/src/osg/ClipNode.cpp @@ -110,7 +110,7 @@ bool ClipNode::removeClipPlane(unsigned int pos) } // Set the GLModes on StateSet associated with the ClipPlanes. -void ClipNode::setStateSetModes(StateSet& stateset,const StateAttribute::GLModeValue value) const +void ClipNode::setStateSetModes(StateSet& stateset,StateAttribute::GLModeValue value) const { for(ClipPlaneList::const_iterator itr=_planes.begin(); itr!=_planes.end();