mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
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:
parent
ec91b6a204
commit
2151a3b9ed
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue