-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
The screen is blank whenever I run an example on Mac OS Mojave. #197
Comments
Hi @yeswecan thanks for pointing this out to us. We don't have a Mojave OS to test on so thanks for pointing it out. We will take a look at the glutin issue and work to get this working. I'll ping you on here when we think a fix has been made so you can test again for us if that's ok. Cheers. |
Hey @JoshuaBatty! I can look into it myself if you can point me in the right direction if that works for you. I'm not at all familiar with Rust but I could probably try a few things and see if that works and/or test something out on Mojave (if that's even a Mojave thing, I also have a High Sierra hackintosh which I could compare against locally). Let me know if you want me to try smth. |
@yeswecan I think rust-windowing/glutin#1069 is more likely your issue. It looks like there's a fix for this coming in winit (the cross-platform windowing layer). I think it's a matter of landing that, then landing the fix up the dependency stream (winit > glutin > glium > nannou). If you want to use the fix in the meantime, you might be able to use the cargo |
It seem that Apple has slightly changed the way they OpenGL rendering works on Mojave. https://stackoverflow.com/questions/52938516/opengl-not-rendering-on-macos-mojave I've found a small workaround by adding a context update in the swap_buffers function call in src/platform/macos/mod.rs right after the call to flushBuffer. I don't know the exact implication of this change, so use at your own risk for now, but it seems to allow the initial window to render correctly. I haven't tested on anything but Mojave.
|
If someone else is facing the same issue, I was not able to use the replace feature of cargo to do the thing it's supposed to do (maybe because the version was not bumped or more probably just because I'm a complete beginner), so I had to add a local override in ~/.cargo/config by specifying the path to winit directly:
Now the nannou examples work but I have a ugly warning that this feature is not meant to be used that way. |
Hello there!
I've tried running nannou's examples and so far the screen is just blank in each of them. Not sure what to look for, there's nothing on console or anywhere else. Is there anything I should check to find the cause of this?
Thanks a lot for your effort!
edit: it looks a lot like this issue - rust-windowing/glutin#969
But it seems fixed a while ago. Is it that nannou somehow pulled the old glutin?
The text was updated successfully, but these errors were encountered: