From 254bd88e6b6096288957123d6256e4d076b7dcd7 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 24 Aug 2025 16:10:13 +0200 Subject: [PATCH] fix: macOS initialising very low OpenGL version by default --- main/gui/source/init/splash_window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/gui/source/init/splash_window.cpp b/main/gui/source/init/splash_window.cpp index 2caa3df7e..824c897a7 100644 --- a/main/gui/source/init/splash_window.cpp +++ b/main/gui/source/init/splash_window.cpp @@ -469,10 +469,10 @@ namespace hex::init { #endif glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE); - #endif + #elif defined(OS_MACOS) + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); - // Configure used OpenGL version - #if defined(OS_MACOS) glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE); glfwWindowHint(GLFW_COCOA_GRAPHICS_SWITCHING, GLFW_TRUE); #endif