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

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

@guygodin

Description

@guygodin

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions