From 46ab3966ff6eb3f956c8854b315044ee8188abbf Mon Sep 17 00:00:00 2001 From: emiyl Date: Tue, 21 Apr 2026 02:15:56 +0100 Subject: [PATCH] build macos with no opengl as default --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index adc78b44..f6f914bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,11 +106,13 @@ endif() if (APPLE) set(ENABLE_METAL_DEFAULT ON) + set(ENABLE_OPENGL_DEFAULT OFF) else() set(ENABLE_METAL_DEFAULT OFF) + set(ENABLE_OPENGL_DEFAULT ON) endif() -option(ENABLE_OPENGL "Enables the OpenGL backend" ON) +option(ENABLE_OPENGL "Enables the OpenGL backend" ${ENABLE_OPENGL_DEFAULT}) option(ENABLE_VULKAN "Enables the Vulkan backend" ON) option(ENABLE_METAL "Enables the Metal backend" ${ENABLE_METAL_DEFAULT}) option(ENABLE_DISCORD_RPC "Enables the Discord Rich Presence feature" ON)