Apply r10801
"qt branch: Fix handling of custom textures for backdrops without our internal state machine getting all confused." git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/qt-trunk@10816 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
10c42fbef0
commit
d9b06f4546
|
@ -214,7 +214,7 @@ void screen_SetBackDropFromFile(const char* filename)
|
|||
|
||||
// Make sure the current texture page is reloaded after we are finished
|
||||
// Otherwise WZ will think it is still loaded and not load it again
|
||||
pie_SetTexturePage(TEXPAGE_NONE);
|
||||
pie_SetTexturePage(TEXPAGE_FONT);
|
||||
|
||||
if( strcmp(extension,".png") == 0 )
|
||||
{
|
||||
|
@ -291,9 +291,8 @@ void screen_Upload(const char *newBackDropBmp)
|
|||
|
||||
// Make sure the current texture page is reloaded after we are finished
|
||||
// Otherwise WZ will think it is still loaded and not load it again
|
||||
pie_SetTexturePage(TEXPAGE_NONE);
|
||||
pie_SetTexturePage(TEXPAGE_FONT);
|
||||
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glBindTexture(GL_TEXTURE_2D, backDropTexture);
|
||||
glColor3f(1, 1, 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue