-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Sample code for shared contexts #852
Comments
This is clearly a problem here: https://github.com/tomaka/glutin/blob/06247af952aa29c0eb5fecf89fd099004e4bc2a0/src/headless.rs#L21 |
Oh, great! Thank you so much for the quick response. I was going to try and fix it and submit a patch, but I ran into #853 when trying to build Glutin locally, and am not an experienced-enough Rust developer to work around that one. |
Hey there! I'm trying to implement an app where I share contexts between multiple headless renderers. It seems like it should be possible to do this using glutin via
GLAttributes
, but when I attempt to use it as I've shown below, I get a compilation error:The error I'm seeing is:
After looking into it, I found
glutin::HeadlessContext
's.context
property, which I believe is of the right type, but doesn't seem to be public. Can anyone point me in the right direction for setting up shared contexts? Once we get it sorted out, I'll gladly contribute back a new example that demonstrates it. Thank you!The text was updated successfully, but these errors were encountered: