Commit 1e9b87e8 authored by hybrid's avatar hybrid

Fix material reset in 2d setup for proper render state reset.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3014 dfc29bdd-3216-0410-991c-e03cc46cb475
parent fa2c5d0c
......@@ -2597,7 +2597,7 @@ void COpenGLDriver::setRenderStates2DMode(bool alpha, bool texture, bool alphaCh
mat.Lighting=false;
mat.AntiAliasing=video::EAAM_OFF;
mat.TextureLayer[0].BilinearFilter=false;
setBasicRenderStates(mat, mat, true);
setBasicRenderStates(mat, LastMaterial, true);
LastMaterial = mat;
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
......
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