mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
When aniso filtering is enabled, force it on for min filtering but not for mag filtering.
This commit is contained in:
1 parent
62054b1e7b
commit
e04b67dad4
1 file changed
+5
-4
@@ -682,10 +682,11 @@ void TextureCacheDX9::UpdateSamplingParams(TexCacheEntry &entry, bool force) {
|
||||
D3DTEXTUREFILTERTYPE magf = (D3DTEXTUREFILTERTYPE)MagFilt[minFilt];
|
||||
|
||||
if (g_Config.iAnisotropyLevel > 0) {
|
||||
if (minf == D3DTEXF_LINEAR) {
|
||||
minf = D3DTEXF_ANISOTROPIC;
|
||||
mipf = D3DTEXF_ANISOTROPIC;
|
||||
}
|
||||
mipf = D3DTEXF_ANISOTROPIC;
|
||||
minf = D3DTEXF_ANISOTROPIC;
|
||||
// In OpenGL, it seems like enabling anisotropy effectively turns on linear filtering.
|
||||
// If we wanted the same behaviour here, we could add the following line, but I don't think it's correct to do that:
|
||||
// magf = D3DTEXF_LINEAR; // (intentionally commented out)
|
||||
}
|
||||
|
||||
dxstate.texMinFilter.set(minf);
|
||||
|
||||
Reference in new issue
Block a user