summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/fancy/main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/demo/fancy/main.lua b/demo/fancy/main.lua
index 3defde6..38aff7a 100644
--- a/demo/fancy/main.lua
+++ b/demo/fancy/main.lua
@@ -14,7 +14,9 @@ honey.ma.engine_play_sound(engine, 'example_sound.ogg', nil)
glfw.Init()
--window.setHint(window.hintType.contextVersionMajor, 3)
--window.setHint(window.hintType.contextVersionMinor, 3)
---window.setHint(window.hintType.openGlProfile, window.profileType.openGlCoreProfile)
+glfw.WindowHint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE)
+glfw.WindowHint(glfw.CONTEXT_VERSION_MAJOR, 4)
+glfw.WindowHint(glfw.CONTEXT_VERSION_MINOR, 1)
--====== create window ======--