`SurfaceOutput` must be dropped before a new `Surface` is made error when setting fullscreen in draw · Issue #1273 · ggez/ggez · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay, I fixed it by moving "context.gfx.set_fullscreen(conf::FullscreenType::True).unwrap();" to the main function (making context mutable. Would still be interesting to know why it throws the above error
Bear with me, I'm a total noob to Rust and ggez ^^
Describe the bug
When running this code and moving my mouse around, the screen stays black and I get this error (Running with RUST_BACKTRACE = 1):
To Reproduce
Do "cargo run" and move your mouse around.
Expected behavior
It's supposed to run in fullscreen and update the color of the screen as the mouse cursor position changes.
Hardware and Software:
The text was updated successfully, but these errors were encountered: