Skip to content

Commit

Permalink
Fixed bug: If texture gamma is changed from the default; during start…
Browse files Browse the repository at this point in the history
…up GL_DoUpdateTexGamma is called before the file manager has loaded PLAYPAL and thus LoadPalette will fail. Check whether the texture manager is online before attempting to do any updating (if its not, we don't need to do an update anyway).
  • Loading branch information
danij committed Dec 1, 2007
1 parent c23fc67 commit 31dce51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doomsday/engine/portable/src/gl_texmanager.c
Expand Up @@ -3013,8 +3013,11 @@ void GL_TexReset(void)
*/
void GL_DoUpdateTexGamma(cvar_t *unused)
{
GL_TexReset();
LoadPalette();
if(texInited)
{
GL_TexReset();
LoadPalette();
}

Con_Printf("Gamma correction set to %f.\n", texGamma);
}
Expand Down

0 comments on commit 31dce51

Please sign in to comment.