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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user