switch back to OpenGL 3.3 (OS X issues)
This commit is contained in:
parent
1fd110ce4c
commit
cfdc8beb81
|
@ -380,7 +380,7 @@ var canvasUniformFormat = glhf.AttrFormat{
|
|||
}
|
||||
|
||||
var canvasVertexShader = `
|
||||
#version 130
|
||||
#version 330 core
|
||||
|
||||
in vec2 position;
|
||||
in vec4 color;
|
||||
|
@ -405,7 +405,7 @@ void main() {
|
|||
`
|
||||
|
||||
var canvasFragmentShader = `
|
||||
#version 130
|
||||
#version 330 core
|
||||
|
||||
in vec4 Color;
|
||||
in vec2 TexCoords;
|
||||
|
|
|
@ -90,8 +90,10 @@ func NewWindow(cfg WindowConfig) (*Window, error) {
|
|||
err := mainthread.CallErr(func() error {
|
||||
var err error
|
||||
|
||||
glfw.WindowHint(glfw.ContextVersionMajor, 2)
|
||||
glfw.WindowHint(glfw.ContextVersionMinor, 1)
|
||||
glfw.WindowHint(glfw.ContextVersionMajor, 3)
|
||||
glfw.WindowHint(glfw.ContextVersionMinor, 3)
|
||||
glfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)
|
||||
glfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)
|
||||
|
||||
glfw.WindowHint(glfw.Resizable, bool2int[cfg.Resizable])
|
||||
glfw.WindowHint(glfw.Decorated, bool2int[!cfg.Undecorated])
|
||||
|
|
Loading…
Reference in New Issue