Skip to content

Commit

Permalink
Revert "Fixed issue with resizing events in GLFW master window"
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 authored Sep 27, 2024
1 parent ed0cb9e commit 0f265eb
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 0f265eb

Please sign in to comment.