From 60a504543fddb6b04759498e1701c8e1755ae92d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 21 Feb 2016 17:27:26 +0900 Subject: [PATCH] ui: Add OpenGL version --- internal/ui/ui_glfw.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 252a110c3..60e5e3f52 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -41,6 +41,8 @@ func Init() *opengl.Context { } glfw.WindowHint(glfw.Visible, glfw.False) glfw.WindowHint(glfw.Resizable, glfw.False) + glfw.WindowHint(glfw.ContextVersionMajor, 2) + glfw.WindowHint(glfw.ContextVersionMinor, 1) // As start, create an window with temporary size to create OpenGL context thread. window, err := glfw.CreateWindow(16, 16, "", nil, nil)