mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Replace clamp with min in sampler normalization
This commit is contained in:
parent
68be040f4a
commit
198ce13934
@ -40,7 +40,7 @@ namespace dxvk {
|
||||
key.MinFilter = std::clamp(key.MinFilter, D3DTEXF_NONE, D3DTEXF_ANISOTROPIC);
|
||||
key.MipFilter = std::clamp(key.MipFilter, D3DTEXF_NONE, D3DTEXF_ANISOTROPIC);
|
||||
|
||||
key.MaxAnisotropy = std::clamp<DWORD>(key.MaxAnisotropy, 0, 16);
|
||||
key.MaxAnisotropy = std::min<DWORD>(key.MaxAnisotropy, 16);
|
||||
|
||||
if (key.MipFilter == D3DTEXF_NONE) {
|
||||
// May as well try and keep slots down.
|
||||
|
Loading…
x
Reference in New Issue
Block a user