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

Is it possible to make the opengl context current on other threads? #1456

Open
saverioscagnoli opened this issue Jan 26, 2025 · 0 comments
Open

Comments

@saverioscagnoli
Copy link

saverioscagnoli commented Jan 26, 2025

I would like to process vertex data on a secondary thread, but every gl call fails unless the context is current on that thread. Since the video::Window has Rc<WindowContext>, it cannot be sent to another thread. How can i make the context current on another thread without the window?

Another thing (less important): is it possible to achieve something like glfw's render context (process sdl events on the main thread // calling opengl from another)

@saverioscagnoli saverioscagnoli changed the title Is it possible to make the opengl current on other threads? Is it possible to make the opengl context current on other threads? Jan 27, 2025
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