Skip to content

Commit

Permalink
Merge pull request AllenDang#864 from AllenDang/revert-831-glfw_rende…
Browse files Browse the repository at this point in the history
…r_sequence

Revert "Fixed issue with resizing events in GLFW master window"
  • Loading branch information
gucio321 authored Sep 27, 2024
2 parents ed0cb9e + 0f265eb commit e7aabec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MasterWindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (w *MasterWindow) setTheme() (fin func()) {
}

func (w *MasterWindow) sizeChange(width, height int) {
w.beforeRender()
// noop
}

func (w *MasterWindow) beforeRender() {
Expand All @@ -214,6 +214,7 @@ func (w *MasterWindow) beforeRender() {
}

func (w *MasterWindow) afterRender() {
Context.cleanState()
}

func (w *MasterWindow) beforeDestroy() {
Expand All @@ -222,8 +223,6 @@ func (w *MasterWindow) beforeDestroy() {
}

func (w *MasterWindow) render() {
Context.cleanState()

fin := w.setTheme()
defer fin()

Expand Down

0 comments on commit e7aabec

Please sign in to comment.