From Brede Johansen, "Here's a small patch to BlendFunc::setFunction(source,destination) to

make it consistent with the constructor and prevent the
BlendFuncSeparate path being called.  This patch fixed the artifact
with the osgpointsprite demo on ATI cards reported by Mike Weiblen."
This commit is contained in:
Robert Osfield
2006-07-11 14:24:18 +00:00
parent ad18b88848
commit 165351196e

View File

@@ -99,6 +99,8 @@ class OSG_EXPORT BlendFunc : public StateAttribute
{
_source_factor = source;
_destination_factor = destination;
_source_factor_alpha = source;
_destination_factor_alpha = destination;
}
inline void setFunction( GLenum source_rgb, GLenum destination_rgb, GLenum source_alpha, GLenum destination_alpha )