From f37ef105c5e0d728356b9c0bc715c271d437ff4b Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 2 May 2015 10:54:58 +0200 Subject: [PATCH] gsdx-ogl: add support for anisotropy Close feature request #447 --- plugins/GSdx/GSDeviceOGL.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index 8cea230873..b09388c7cb 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -515,7 +515,9 @@ GLuint GSDeviceOGL::CreateSampler(bool bilinear, bool tau, bool tav) gl_SamplerParameterf(sampler, GL_TEXTURE_MIN_LOD, 0); gl_SamplerParameterf(sampler, GL_TEXTURE_MAX_LOD, 6); - // FIXME: need ogl extension sd.MaxAnisotropy = 16; + if (GLLoader::found_GL_EXT_texture_filter_anisotropic && !!theApp.GetConfig("AnisotropicFiltering", 0) && !theApp.GetConfig("paltex", 0)) { + gl_SamplerParameterf(sampler, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)theApp.GetConfig("MaxAnisotropy", 0)); + } return sampler; }