From 39603487ecd714f47b8650112bd27479c530b11c Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Thu, 24 Jul 2014 03:01:16 -0500 Subject: [PATCH] sdl2: restore anisotropic filtering support in gl --- src/sdl2/ogl_sdl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sdl2/ogl_sdl.c b/src/sdl2/ogl_sdl.c index 562eaf2a7..d4211927a 100644 --- a/src/sdl2/ogl_sdl.c +++ b/src/sdl2/ogl_sdl.c @@ -171,7 +171,10 @@ boolean OglSdlSurface(INT32 w, INT32 h) DBG_Printf("Extensions : %s\n", gl_extensions); 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;