mirror of
https://github.com/minetest/irrlicht.git
synced 2025-01-13 16:57:33 +01:00
Reset blend equation in 2D mode in OGLES1 and OGLES2 drivers
This commit is contained in:
parent
a04a0d2a4b
commit
53e1b52ff4
@ -1963,6 +1963,7 @@ COGLES2Driver::~COGLES2Driver()
|
||||
{
|
||||
CacheHandler->setBlend(true);
|
||||
CacheHandler->setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
CacheHandler->setBlendEquation(GL_FUNC_ADD);
|
||||
}
|
||||
else
|
||||
CacheHandler->setBlend(false);
|
||||
|
@ -2057,6 +2057,7 @@ void COGLES1Driver::setRenderStates2DMode(bool alpha, bool texture, bool alphaCh
|
||||
{
|
||||
CacheHandler->setBlend(true);
|
||||
CacheHandler->setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
CacheHandler->setBlendEquation(GL_FUNC_ADD);
|
||||
glEnable(GL_ALPHA_TEST);
|
||||
glAlphaFunc(GL_GREATER, 0.f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user