Skip to content

Commit

Permalink
Fix windows dual graphics chip
Browse files Browse the repository at this point in the history
closes #437

Upgrade to opengl 2.1
  • Loading branch information
mgazza committed Oct 10, 2023
1 parent 0635d3e commit 2d2d6d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/driver/glfw/glfw_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "github.com/go-gl/glfw/v3.3/glfw"

func initWindowHints() {
glfw.WindowHint(glfw.ContextVersionMajor, 2)
glfw.WindowHint(glfw.ContextVersionMinor, 0)
glfw.WindowHint(glfw.ContextVersionMinor, 1)

glfw.WindowHint(glfw.CocoaGraphicsSwitching, glfw.True)
}
2 changes: 1 addition & 1 deletion internal/driver/glfw/glfw_es.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ import "github.com/go-gl/glfw/v3.3/glfw"
func initWindowHints() {
glfw.WindowHint(glfw.ClientAPI, glfw.OpenGLESAPI)
glfw.WindowHint(glfw.ContextVersionMajor, 2)
glfw.WindowHint(glfw.ContextVersionMinor, 0)
glfw.WindowHint(glfw.ContextVersionMinor, 1)
}
2 changes: 1 addition & 1 deletion internal/painter/gl/gl_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package gl
import (
"strings"

"github.com/go-gl/gl/v3.2-core/gl"
"github.com/go-gl/gl/v2.1/gl"

"fyne.io/fyne/v2"
)
Expand Down

0 comments on commit 2d2d6d3

Please sign in to comment.