Browse Source
This prevents dropping the Gfx object before the console. We want to do this because printing after dropping gfx doesn't do anything (gfx isn't rendering the text anymore). Note that even though Rust doesn't understand the relationship between Console and println, even if you don't use the console variable Rust will prevent Gfx dropping because Console's Drop code _might_ use the Gfx object (it doesn't, but we get the error we want anyway).pull/19/head
AzureMarker
3 years ago
1 changed files with 10 additions and 5 deletions
Loading…
Reference in new issue