Accidentilly changed the default texture filtering mode. oops.

This commit is contained in:
Shpoike 2021-03-06 06:38:32 +00:00
parent 2bb1c8c96f
commit 6ebdec2f1e

View file

@ -128,7 +128,7 @@ static glmode_t glmodes[] = {
{GL_LINEAR, GL_NEAREST_MIPMAP_LINEAR, "lln", NULL},
};
#define NUM_GLMODES (int)(sizeof(glmodes)/sizeof(glmodes[0]))
static int glmode_idx = NUM_GLMODES - 1; /* trilinear */
static int glmode_idx = 5; /* trilinear */
/*
===============
@ -689,7 +689,7 @@ void TexMgr_Init (void)
Cvar_RegisterVariable (&gl_picmip);
Cvar_RegisterVariable (&gl_texture_anisotropy);
Cvar_SetCallback (&gl_texture_anisotropy, &TexMgr_Anisotropy_f);
gl_texturemode.string = glmodes[glmode_idx].name2?glmodes[glmode_idx].name2:glmodes[glmode_idx].name1;
gl_texturemode.string = glmodes[glmode_idx].name1?glmodes[glmode_idx].name1:glmodes[glmode_idx].name2;
Cvar_RegisterVariable (&gl_texturemode);
Cvar_SetCallback (&gl_texturemode, &TexMgr_TextureMode_f);
Cmd_AddCommand ("gl_describetexturemodes", &TexMgr_DescribeTextureModes_f);