summaryrefslogtreecommitdiff
path: root/demo/fancy
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-03-12 01:20:53 -0600
committersanine <sanine.not@pm.me>2023-03-12 01:20:53 -0600
commitcc7dfef17ffaa41a675364fb5f0561a13d6b0dba (patch)
tree5d3a4040b2867f90e15f817e6ab635ac98f41327 /demo/fancy
parent437f58fd5d3bdcc94bf69aa3d283a3987921e832 (diff)
really really strongy suggest core profile (looking @ u, mac)
Diffstat (limited to 'demo/fancy')
-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 ======--