Created
July 17, 2019 13:45
-
-
Save misyltoad/0b7375a8d2207ff1c224059604d46baf to your computer and use it in GitHub Desktop.
anisotropy.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp | |
index 9fecbc0c..a55380fc 100644 | |
--- a/src/d3d9/d3d9_device.cpp | |
+++ b/src/d3d9/d3d9_device.cpp | |
@@ -4554,9 +4554,12 @@ namespace dxvk { | |
DecodeD3DCOLOR(D3DCOLOR(state[D3DSAMP_BORDERCOLOR]), key.BorderColor); | |
if (m_d3d9Options.samplerAnisotropy != -1) { | |
- key.MagFilter = D3DTEXF_ANISOTROPIC; | |
- key.MinFilter = D3DTEXF_ANISOTROPIC; | |
- key.MipFilter = D3DTEXF_ANISOTROPIC; | |
+ if (key.MagFilter == D3DTEXF_LINEAR) | |
+ key.MagFilter = D3DTEXF_ANISOTROPIC; | |
+ | |
+ if (key.MinFilter == D3DTEXF_LINEAR) | |
+ key.MinFilter = D3DTEXF_ANISOTROPIC; | |
+ | |
key.MaxAnisotropy = m_d3d9Options.samplerAnisotropy; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment