Skip to content

Don't invoke callbacks after window has quit #112

@Keyslam

Description

@Keyslam

Currently due to how QuitFlag is checked callbacks will still be processed after the window has quit

This can be annoying when you take care of destroying/disposing objects in Quit, but they are still accessed in for example Update. I'd have to manually keep a boolean to track if the window has quit, and do an early return in every callback to fix this.
It's also not inline with how LOVE works.

Could this issue be fixed? I'd create a pull request, but I'm not sure when and how the QuitFlag is set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions