gsdx-ogl: add support for anisotropy

Close feature request #447
This commit is contained in:
Gregory Hainaut 2015-05-02 10:54:58 +02:00
parent b1ec8a5a42
commit f37ef105c5
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}