fixes (maybe just circumvents?) bug #8514

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1152 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-02-20 23:46:34 +00:00
parent 785daa97e1
commit 82dd8e0bbc
1 changed files with 6 additions and 0 deletions

View File

@ -500,6 +500,12 @@ void screen_Upload(UWORD* newBackDropBmp)
glDisable(GL_DEPTH_TEST); glDisable(GL_DEPTH_TEST);
glDepthMask(GL_FALSE); glDepthMask(GL_FALSE);
// This function calls glDisable(GL_TEXTURE_2D);
// and more importantly prevents the next call with (-1) as param to call glDisable as well
// When/If removing this call, you should be sure to check wether this bug doesn't reappear: https://gna.org/bugs/index.php?8514
pie_SetTexturePage(-1);
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, backDropTexture); glBindTexture(GL_TEXTURE_2D, backDropTexture);
glColor3f(1, 1, 1); glColor3f(1, 1, 1);