gsdx-ogl: Enable anisotropic filtering only for triangles.

Sprites are flat so aniso is likely useless (it would save perf for
others primitives).

Idea by Gregory.
This commit is contained in:
lightningterror 2019-01-18 20:05:04 +01:00
parent 224d51b0aa
commit 2e2c9b14a4
1 changed files with 2 additions and 1 deletions

View File

@ -848,7 +848,8 @@ void GSRendererOGL::EmulateTextureSampler(const GSTextureCache::Source* tex)
m_ps_ssel.triln = 0;
} else {
m_ps_ssel.biln = bilinear;
m_ps_ssel.aniso = 1;
// Enable aniso only for triangles. Sprites are flat so aniso is likely useless (it would save perf for others primitives).
m_ps_ssel.aniso = m_vt.m_primclass == GS_TRIANGLE_CLASS ? 1 : 0;
m_ps_ssel.triln = trilinear;
if (trilinear_manual) {
m_ps_sel.manual_lod = 1;