Skip to content

Commit

Permalink
From Mathias Froenlich, "have a problem with the SunOS CC.
Browse files Browse the repository at this point in the history
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.
"
  • Loading branch information
robertosfield committed Sep 11, 2007
1 parent e6a064c commit e7beff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osg/ClipNode.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit e7beff0

Please sign in to comment.