sdl2: restore anisotropic filtering support in gl

This commit is contained in:
Ronald Kinard 2014-07-24 03:01:16 -05:00
parent 716aa1f33a
commit 39603487ec

View file

@ -171,7 +171,10 @@ boolean OglSdlSurface(INT32 w, INT32 h)
DBG_Printf("Extensions : %s\n", gl_extensions); DBG_Printf("Extensions : %s\n", gl_extensions);
oglflags = 0; oglflags = 0;
maximumAnisotropy = 0; if (isExtAvailable("GL_EXT_texture_filter_anisotropic", gl_extensions))
pglGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &maximumAnisotropy);
else
maximumAnisotropy = 0;
granisotropicmode_cons_t[1].value = maximumAnisotropy; granisotropicmode_cons_t[1].value = maximumAnisotropy;