Skip to content

Commit

Permalink
Only use textureScale on macOS
Browse files Browse the repository at this point in the history
This is darwin specific and some linux systems were triggering
it by mistake.

May fix #1103
  • Loading branch information
andydotxyz committed Jun 28, 2020
1 parent 4b8ba63 commit 7f83254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/glfw/window.go
Expand Up @@ -495,7 +495,7 @@ func (w *window) resized(_ *glfw.Window, width, height int) {
}

func (w *window) frameSized(viewport *glfw.Window, width, height int) {
if width == 0 || height == 0 {
if width == 0 || height == 0 || runtime.GOOS != "darwin" {
return
}

Expand Down

0 comments on commit 7f83254

Please sign in to comment.