From ba21879059d77538bf4c174afede87761c548899 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 7 May 2015 20:20:46 +0200 Subject: [PATCH] gsdx-ogl: 1x aniso <=> off --- 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 dec298d1d9..de14b8252a 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -555,7 +555,9 @@ GLuint GSDeviceOGL::CreateSampler(bool bilinear, bool tau, bool tav) gl_SamplerParameterf(sampler, GL_TEXTURE_MAX_LOD, 6); 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)); + int anisotropy = theApp.GetConfig("MaxAnisotropy", 1); + if (anisotropy > 1) // 1 is the default in opengl so don't do anything + gl_SamplerParameterf(sampler, GL_TEXTURE_MAX_ANISOTROPY_EXT, (float)anisotropy); } return sampler;