mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
When aniso filtering is enabled, force it on for min filtering but not for mag filtering.
This commit is contained in:
parent
62054b1e7b
commit
e04b67dad4
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue