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

Provide a way to nuke glium's internal state #1505

Open
HeroesGrave opened this issue Jul 26, 2016 · 0 comments
Open

Provide a way to nuke glium's internal state #1505

HeroesGrave opened this issue Jul 26, 2016 · 0 comments

Comments

@HeroesGrave
Copy link
Contributor

HeroesGrave commented Jul 26, 2016

I'm trying to use glium with nanovg but trying to "reset" the state after calling nanovg's opengl renderer is rather difficult because I can't work out what needs to be reset, or what it need to be reset to. At the moment I'm digging through source code of both libraries to try and work it out, but this isn't ideal.

There should be a method that does the following:

  1. Unbind everything
  2. Take a DrawParameters struct and set all the associated OpenGL state without checking the internal cache.
  3. Override the internal cache with the new state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant