ui: Reset framebuffer-size-changed callback after calling (#70)

This commit is contained in:
Hajime Hoshi 2015-01-27 01:25:50 +09:00
parent 23b3f1afce
commit a1aed91cf9

View File

@ -95,6 +95,7 @@ func (u *userInterface) start(width, height, scale int, title string) (actualSca
ch := make(chan struct{})
window := u.window
window.SetFramebufferSizeCallback(func(w *glfw.Window, width, height int) {
window.SetFramebufferSizeCallback(nil)
close(ch)
})
window.SetSize(width*scale, height*scale)