Commit d1a4b288 authored by hybrid's avatar hybrid

Avoid duplicated render state resets in 2d mode under OpenGL

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3486 dfc29bdd-3216-0410-991c-e03cc46cb475
parent fbde0c7f
...@@ -3044,6 +3044,9 @@ void COpenGLDriver::setRenderStates2DMode(bool alpha, bool texture, bool alphaCh ...@@ -3044,6 +3044,9 @@ void COpenGLDriver::setRenderStates2DMode(bool alpha, bool texture, bool alphaCh
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
} }
setTransform(ETS_TEXTURE_0, core::IdentityMatrix); setTransform(ETS_TEXTURE_0, core::IdentityMatrix);
// Due to the transformation change, the previous line would call a reset each frame
// but we can safely reset the variable as it was false before
Transformation3DChanged=false;
if (alphaChannel) if (alphaChannel)
{ {
......
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