Commit b5ade26c authored by nadro's avatar nadro

- Fixed issue with BlendFactor in D3D8, D3D9 and OpenGL drivers.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4883 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 94cb29bd
......@@ -1633,7 +1633,7 @@ void CD3D8Driver::setBasicRenderStates(const SMaterial& material, const SMateria
}
// Blend Factor
if (material.BlendFactor != 0.f)
if (IR(material.BlendFactor) & 0xFFFFFFFF)
{
E_BLEND_FACTOR srcFact = EBF_ZERO;
E_BLEND_FACTOR dstFact = EBF_ZERO;
......
......@@ -2344,7 +2344,7 @@ void CD3D9Driver::setBasicRenderStates(const SMaterial& material, const SMateria
}
// Blend Factor
if (material.BlendFactor != 0.f)
if (IR(material.BlendFactor) & 0xFFFFFFFF)
{
E_BLEND_FACTOR srcRGBFact = EBF_ZERO;
E_BLEND_FACTOR dstRGBFact = EBF_ZERO;
......
......@@ -3194,7 +3194,7 @@ void COpenGLDriver::setBasicRenderStates(const SMaterial& material, const SMater
}
// Blend Factor
if (material.BlendFactor != 0.f)
if (IR(material.BlendFactor) & 0xFFFFFFFF)
{
E_BLEND_FACTOR srcRGBFact = EBF_ZERO;
E_BLEND_FACTOR dstRGBFact = EBF_ZERO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment