BGE: Fix T43218: Text of framerate and profile glitch in Multitexture shading

Fix T43218: Text of framerate and profile glitch in Multitexture shading

Reviewers: lordloki, panzergame

Reviewed By: panzergame

Subscribers: medved

Projects: #game_engine

Maniphest Tasks: T43218

Differential Revision: https://developer.blender.org/D1536
This commit is contained in:
Ulysse Martin 2015-10-27 15:22:22 +01:00 committed by Porteries Tristan
parent 3f85eeddaa
commit b2f57190d9
Notes: blender-bot 2024-04-29 13:07:32 +02:00
Referenced by issue #43218, Text of framerate and profile glitch in Multitexture shading
1 changed files with 6 additions and 2 deletions

View File

@ -1362,9 +1362,13 @@ static void DisableForText()
for (int i=0; i<RAS_MAX_TEXCO; i++) {
glActiveTextureARB(GL_TEXTURE0_ARB+i);
if (GLEW_ARB_texture_cube_map)
if (GLEW_ARB_texture_cube_map) {
glDisable(GL_TEXTURE_CUBE_MAP_ARB);
glDisable(GL_TEXTURE_GEN_S);
glDisable(GL_TEXTURE_GEN_T);
glDisable(GL_TEXTURE_GEN_Q);
glDisable(GL_TEXTURE_GEN_R);
}
glDisable(GL_TEXTURE_2D);
}