From 6a5fceb8fd9ae9beefb1e8dce91436b92854a7ab Mon Sep 17 00:00:00 2001 From: numzero Date: Sun, 2 Jul 2023 21:35:11 +0300 Subject: [PATCH] =?UTF-8?q?Hide=20OpenGL3=20behind=20SDL2=20(it=20won?= =?UTF-8?q?=E2=80=99t=20build=20otherwise=20anyway)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/Irrlicht/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt index d404735f..73d2d0b4 100644 --- a/source/Irrlicht/CMakeLists.txt +++ b/source/Irrlicht/CMakeLists.txt @@ -148,7 +148,11 @@ endif() # OpenGL -option(ENABLE_OPENGL3 "Enable OpenGL 3+" FALSE) +if(USE_SDL2) + option(ENABLE_OPENGL3 "Enable OpenGL 3+" FALSE) +else() + set(ENABLE_OPENGL3 FALSE) +endif() if(ANDROID OR EMSCRIPTEN) set(ENABLE_OPENGL FALSE)