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

factor out save/restore GL state #319

Open
sagudev opened this issue Oct 13, 2024 · 0 comments
Open

factor out save/restore GL state #319

sagudev opened this issue Oct 13, 2024 · 0 comments

Comments

@sagudev
Copy link
Member

sagudev commented Oct 13, 2024

factor out save/restore GL state so we can reuse it in webxr:

webxr code: https://github.com/servo/webxr/blob/e3249c3df967f16fab9928d053708bfb43487af3/webxr/gl_utils.rs#L100
surfman:

// Save the current GL state

I think the closure approach would be the best (to prevent users to forget restore) and creating separate clear function would be useful too (for usage in closure).

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