aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'source/Irrlicht/CMakeLists.txt')
-rw-r--r--source/Irrlicht/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt
index 686b0d2..278622b 100644
--- a/source/Irrlicht/CMakeLists.txt
+++ b/source/Irrlicht/CMakeLists.txt
@@ -260,7 +260,7 @@ endif()
if(ENABLE_GLES2)
find_package(OpenGLES2 REQUIRED)
endif()
-if(ENABLE_OPENGL)
+if(ENABLE_OPENGL OR ENABLE_OPENGL3)
set(OpenGL_GL_PREFERENCE "LEGACY")
find_package(OpenGL REQUIRED)
endif()