From d31a57c0afc8769cef8af82321c07cbc14c0474b Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 24 Mar 2023 16:08:18 -0500 Subject: fix issue with nanovg breaking rendering --- honey/init.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'honey') 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() -- cgit v1.2.1