From e44266b526e4103063ea1933a7465ce87878114e Mon Sep 17 00:00:00 2001 From: Deve Date: Tue, 12 Jun 2018 22:25:46 +0200 Subject: [PATCH] Always set blend func in GLES 2.0. It's often changed in STK engine and the value stored in irrlicht variable may be invalid. Fixes #3296 --- lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp b/lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp index e8bbb3eb2..aad4b0867 100644 --- a/lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp +++ b/lib/irrlicht/source/Irrlicht/COGLES2Driver.cpp @@ -2753,26 +2753,26 @@ namespace video void COGLES2CallBridge::setBlendFunc(GLenum source, GLenum destination) { - if(BlendSource != source || BlendDestination != destination) - { + //if(BlendSource != source || BlendDestination != destination) + //{ glBlendFunc(source, destination); BlendSource = source; BlendDestination = destination; - } + //} } void COGLES2CallBridge::setBlend(bool enable) { - if(Blend != enable) - { + //if(Blend != enable) + //{ if (enable) glEnable(GL_BLEND); else glDisable(GL_BLEND); Blend = enable; - } + //} } void COGLES2CallBridge::setCullFaceFunc(GLenum mode)