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
This commit is contained in:
parent
19736c2a51
commit
e44266b526
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user