From 282bb6c65544a3187a0656be29b1b0df27dcec4e Mon Sep 17 00:00:00 2001 From: Deve Date: Wed, 1 Mar 2017 21:44:11 +0100 Subject: [PATCH] Always use fixed blending for GLES legacy pipeline --- .../Irrlicht/COGLES2FixedPipelineRenderer.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/COGLES2FixedPipelineRenderer.cpp b/lib/irrlicht/source/Irrlicht/COGLES2FixedPipelineRenderer.cpp index 1d7788e41..f0e0eda1a 100644 --- a/lib/irrlicht/source/Irrlicht/COGLES2FixedPipelineRenderer.cpp +++ b/lib/irrlicht/source/Irrlicht/COGLES2FixedPipelineRenderer.cpp @@ -67,12 +67,15 @@ void COGLES2FixedPipelineRenderer::OnSetMaterial(const video::SMaterial& materia } else if (Blending) { - E_BLEND_FACTOR srcFact,dstFact; - E_MODULATE_FUNC modulate; - u32 alphaSource; - unpack_textureBlendFunc(srcFact, dstFact, modulate, alphaSource, material.MaterialTypeParam); + //E_BLEND_FACTOR srcFact,dstFact; + //E_MODULATE_FUNC modulate; + //u32 alphaSource; + //unpack_textureBlendFunc(srcFact, dstFact, modulate, alphaSource, material.MaterialTypeParam); - Driver->getBridgeCalls()->setBlendFunc(Driver->getGLBlend(srcFact), Driver->getGLBlend(dstFact)); + //Driver->getBridgeCalls()->setBlendFunc(Driver->getGLBlend(srcFact), Driver->getGLBlend(dstFact)); + //Driver->getBridgeCalls()->setBlend(true); + + Driver->getBridgeCalls()->setBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_COLOR); Driver->getBridgeCalls()->setBlend(true); } else