Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Window stays open sometimes after erroring #5

@ColonelThirtyTwo

Description

@ColonelThirtyTwo

If Lua terminates without deinitializing lujgl, then the window will not close. This often happens if an error is thrown between LuJGL.initialize() and LuJGL.mainloop().

Tried a special ffi.metatype struct with a __gc that deinitializes glfw just in case, but didn't work.

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