Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

SamplerState.OpenGL doesn't properly set the MaxAnisotropy parameter #669

Open
guygodin opened this issue Apr 15, 2018 · 0 comments
Open

Comments

@guygodin
Copy link

I'm not sure if I should do a Pull Request but here's the bug I've found:

GL.TexParameter(target, (TextureParameterName)OpenTK.Graphics.ES20.ExtTextureFilterAnisotropic.TextureMaxAnisotropyExt, Description.MaxAnisotropy);

the line should be:

GL.TexParameter(target, (TextureParameterName)OpenTK.Graphics.ES20.ExtTextureFilterAnisotropic.TextureMaxAnisotropyExt, maxAnisotropy);

What happens currently is if you apply an Anisotropic SamplerState override and then switch back to Linear, it will continue to render with Anisotropic because the MaxAnisotropy will still be 16 (even though it should be 1 because of the AnisotropicMask)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant