make sure gl_max_anisotropy is initialized. also added a uberparanoid check

for gl_max_anisotropy.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@615 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2012-01-19 20:55:27 +00:00
parent d148250fcb
commit 2b547aefbf

View file

@ -692,9 +692,16 @@ static void GL_CheckExtensions (void)
//get max value either way, so the menu and stuff know it
glGetFloatv (GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &gl_max_anisotropy);
if (gl_max_anisotropy < 1)
{
gl_anisotropy_able = false;
gl_max_anisotropy = 1;
Con_Warning ("anisotropic filtering broken\n");
}
}
else
{
gl_max_anisotropy = 1;
Con_Warning ("texture_filter_anisotropic not supported\n");
}
}