mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
sdl2: restore anisotropic filtering support in gl
This commit is contained in:
parent
716aa1f33a
commit
39603487ec
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue