From 165351196efafac5c7fc78a807e59460e51aaaff Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Jul 2006 14:24:18 +0000 Subject: [PATCH] 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." --- include/osg/BlendFunc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/osg/BlendFunc b/include/osg/BlendFunc index d87d1ca73..c566d137c 100644 --- a/include/osg/BlendFunc +++ b/include/osg/BlendFunc @@ -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 )