gl_texmgr.c: make sure "gl_texturemode" starts in sync with "mode".

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@619 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
svdijk 2012-01-21 09:51:38 +00:00
parent ec91b6a204
commit 2151a3b9ed

View file

@ -585,6 +585,7 @@ void TexMgr_Init (void)
Cvar_RegisterVariable (&gl_texture_anisotropy); Cvar_RegisterVariable (&gl_texture_anisotropy);
Cvar_SetCallback (&gl_texture_anisotropy, &TexMgr_Anisotropy_f); Cvar_SetCallback (&gl_texture_anisotropy, &TexMgr_Anisotropy_f);
Cvar_RegisterVariable (&gl_texturemode); Cvar_RegisterVariable (&gl_texturemode);
Cvar_SetQuick (&gl_texturemode, modes[mode].name); // sync with mode
Cvar_SetCallback (&gl_texturemode, &TexMgr_TextureMode_f); Cvar_SetCallback (&gl_texturemode, &TexMgr_TextureMode_f);
Cmd_AddCommand ("gl_describetexturemodes", &TexMgr_DescribeTextureModes_f); Cmd_AddCommand ("gl_describetexturemodes", &TexMgr_DescribeTextureModes_f);
Cmd_AddCommand ("imagelist", &TexMgr_Imagelist_f); Cmd_AddCommand ("imagelist", &TexMgr_Imagelist_f);