summaryrefslogtreecommitdiff
path: root/honey/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'honey/init.lua')
-rw-r--r--honey/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/honey/init.lua b/honey/init.lua
index 26d16e1..6cf8801 100644
--- a/honey/init.lua
+++ b/honey/init.lua
@@ -13,6 +13,9 @@ function init(width, height, title)
local title = title or "honey3d"
glfw.Init()
+ glfw.WindowHint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE)
+ glfw.WindowHint(glfw.CONTEXT_VERSION_MAJOR, 4)
+ glfw.WindowHint(glfw.CONTEXT_VERSION_MINOR, 1)
local window = honey.Window(width, height, title)
glfw.MakeContextCurrent(window.win)
gl.InitGlad()