ui: Add OpenGL version

This commit is contained in:
Hajime Hoshi 2016-02-21 17:27:26 +09:00
parent 6c14c31c55
commit 60a504543f

View File

@ -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)