mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
VideoBackends: Do not use Anisotropy on Point filtered textures.
The D3D backend was always forcing Anisotropic filtering when that is enabled regardless of how the game chose to configure the texture filtering registers; this causes the same issues as "Force Filtering" without Anisotropy, such as causing game UI elements to no longer line up adjacent correctly. Historically, OpenGL's Anisotropy support has always worked "better" than D3D's due to seeming to not have this problem; unfortunately, OpenGL's Anisotropy specification only gives GL_LINEAR based filtering modes defined behavior, with only the mipmap setting being required to be considered. Some OpenGL implementations were implicitly disabling Anisotropy when the min/mag filters were set to GL_NEAREST, but this behavior is not required by the spec so cannot be relied on.
This commit is contained in:
@ -1245,7 +1245,8 @@ void Renderer::SetSamplerState(int stage, int tex_index, bool custom_tex)
|
||||
|
||||
if (g_ActiveConfig.bForceFiltering)
|
||||
{
|
||||
new_state.min_filter = 6; // 4 (linear min) | 2 (linear mip)
|
||||
// Only use mipmaps if the game says they are available.
|
||||
new_state.min_filter = (tm0.min_filter & 3) == TexMode0::TEXF_NONE ? 4 : 6;
|
||||
new_state.mag_filter = 1; // linear mag
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user