Commit 2b18a9ae authored by nadro's avatar nadro

- Fixed positioning of 2D elements in OpenGL. Test drawRectOutline passed....

- Fixed positioning of 2D elements in OpenGL. Test drawRectOutline passed. Thanks CuteAlien for report this issue.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5282 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 909e7ca9
......@@ -2930,6 +2930,8 @@ void COpenGLDriver::setRenderStates2DMode(bool alpha, bool texture, bool alphaCh
CacheHandler->setMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(0.375f, 0.375f, 0.0f);
// Make sure we set first texture matrix
CacheHandler->setActiveTexture(GL_TEXTURE0);
......
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