summaryrefslogtreecommitdiff
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
parent437f58fd5d3bdcc94bf69aa3d283a3987921e832 (diff)
really really strongy suggest core profile (looking @ u, mac)
-rw-r--r--CMakeLists.txt2
-rw-r--r--demo/fancy/main.lua4
-rw-r--r--src/glfw/setup.h1
3 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b262e84..80a6cb9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@ if (UNIX)
set(CMAKE_C_FLAGS "-g")
endif()
-find_package(OpenGL 3.3 REQUIRED)
+find_package(OpenGL 4.1 REQUIRED)
set(SRC_ROOT ${CMAKE_SOURCE_DIR}/src)
set(LIB_ROOT ${CMAKE_SOURCE_DIR}/libs)
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 ======--
diff --git a/src/glfw/setup.h b/src/glfw/setup.h
index 4226c3b..b867627 100644
--- a/src/glfw/setup.h
+++ b/src/glfw/setup.h
@@ -204,6 +204,7 @@ H_GLFW_FUNCTIONS
X("OPENGL_FORWARD_COMPAT", GLFW_OPENGL_FORWARD_COMPAT) \
X("OPENGL_DEBUG_CONTEXT", GLFW_OPENGL_DEBUG_CONTEXT) \
X("OPENGL_PROFILE", GLFW_OPENGL_PROFILE) \
+ X("OPENGL_CORE_PROFILE", GLFW_OPENGL_CORE_PROFILE) \
X("CONTEXT_RELEASE_BEHAVIOR", GLFW_CONTEXT_RELEASE_BEHAVIOR) \
X("CONTEXT_NO_ERROR", GLFW_CONTEXT_NO_ERROR) \
X("CONTEXT_CREATION_API", GLFW_CONTEXT_CREATION_API) \