From Paul Martz, "The attached code changes StateSet::merge() so that it copies RenderBin data such as the rendering hint and RenderBin details from rhs into "this", only if "this" has RenderBin mode set to INHERIT.
It replaces a comment by you indicating something along these lines should be done. To me, this seems like the right thing to do."
This commit is contained in:
@@ -774,10 +774,15 @@ void StateSet::merge(const StateSet& rhs)
|
||||
}
|
||||
}
|
||||
|
||||
// need to merge rendering hints
|
||||
// but will need to think how best to do this first
|
||||
// RO, Nov. 2001.
|
||||
|
||||
// Merge RenderBin state from rhs into this.
|
||||
// Only do so if this's RenderBinMode is INHERIT.
|
||||
if (getRenderBinMode() == INHERIT_RENDERBIN_DETAILS)
|
||||
{
|
||||
setRenderingHint( rhs.getRenderingHint() );
|
||||
setRenderBinMode( rhs.getRenderBinMode() );
|
||||
setBinNumber( rhs.getBinNumber() );
|
||||
setBinName( rhs.getBinName() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user