mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
224d51b0aa
commit
2e2c9b14a4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue