Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextureTools::DistanceField doesn't work with blending enabled #472

Open
cheezeygeek opened this issue Oct 10, 2020 · 1 comment
Open

TextureTools::DistanceField doesn't work with blending enabled #472

cheezeygeek opened this issue Oct 10, 2020 · 1 comment

Comments

@cheezeygeek
Copy link

Pretty much what the title says: if you call TextureTools::DistanceField::operator(), the resulting texture will not have the expected contents if blending is enabled in the renderer. In my experience, the texture was just a very dark solid color. Turning blending off fixed the problem. I think this should be a pretty simple fix, but I could be wrong.

@mosra
Copy link
Owner

mosra commented Oct 10, 2020

Haha, thanks for reminding me of this one.

Handling this particular case is a simple fix, yes, but I wanted to tackle it in a more generic way that avoids all renderer state leaks (what if scissor stays enabled as well? it'll break too), mitigating the inherent problem of GL's global state. And that's why it's still an unfixed known issue.

I'm currently working on a Vulkan backend and I plan to reuse the gained knowledge on designing a better abstraction for scoped GL renderer state changes.

@mosra mosra moved this to TODO in Magnum / GL Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: TODO
Development

No branches or pull requests

2 participants