diff options
author | sanine <sanine.not@pm.me> | 2023-03-24 16:08:18 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-03-24 16:08:18 -0500 |
commit | d31a57c0afc8769cef8af82321c07cbc14c0474b (patch) | |
tree | ca8c8c981fc0633769e3c903d9e3b8ae89630e78 /honey | |
parent | e5553bb81c93cd76456d07d3a1d7e8bb1b249b6e (diff) |
fix issue with nanovg breaking rendering
Diffstat (limited to 'honey')
-rw-r--r-- | honey/init.lua | 3 |
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() |