Bugfix: 21586 - UI problems with Tiled Textures (animatable for GE)

The problem was present in Blender 2.49, but it didn't produce any side effect.
glScale was changing the texture matrix and the matrix was never been reset. That messes up with UI drawing.
This commit is contained in:
Dalai Felinto
2010-04-08 20:58:18 +00:00
parent 42db34b126
commit c1a9d4d7a3

View File

@@ -1097,6 +1097,14 @@ void GPU_end_object_materials(void)
GMS.matbuf= NULL;
GMS.gmatbuf= NULL;
GMS.blendmode= NULL;
/* resetting the texture matrix after the glScale needed for tiled textures */
if(GTS.tilemode)
{
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glMatrixMode(GL_MODELVIEW);
}
}
/* Lights */