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)