From ba77d01c91a363ad932ecd26c3eaba82ddf7a6f0 Mon Sep 17 00:00:00 2001 From: numzero Date: Mon, 13 Mar 2023 19:16:06 +0300 Subject: [PATCH] Error out early on unsupported SDL2+GLES1 combo --- source/Irrlicht/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt index a57258d..fa345ca 100644 --- a/source/Irrlicht/CMakeLists.txt +++ b/source/Irrlicht/CMakeLists.txt @@ -204,6 +204,9 @@ if(ENABLE_OPENGL3) endif() if(ENABLE_GLES1) + if (USE_SDL2) + message(SEND_ERROR "OpenGL ES 1 is not supported with SDL2") + endif() add_definitions(-D_IRR_COMPILE_WITH_OGLES1_) if(DEVICE MATCHES "^(WINDOWS|X11|ANDROID)$") add_definitions(-D_IRR_COMPILE_WITH_EGL_MANAGER_ -D_IRR_OGLES1_USE_EXTPOINTER_)