Commit Graph

3 Commits

Author SHA1 Message Date
Hajime Hoshi
8ab047853e internal/glfw: Bug fix: build failure with GOOS=js
Updates #1672
2021-06-13 23:00:40 +09:00
Hajime Hoshi
7371f2fe61 internal/glfw: Clean up the code
Updates #1672
2021-06-13 22:49:05 +09:00
Hajime Hoshi
2ce104de0d internal/glfw: Bug fix: NewCallbackCDecl objects were leaked
Callbacks created by NewCallbackCDecl were never released and then
they are leaked, especially when the window size was changed by
SetWindowSize on Windows.

This change defines new callback ID types with uintptr, and reuse
the callbacks.

Closes #1672
2021-06-13 22:32:53 +09:00