summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2018-09-22 20:54:43 +0200
committerGitHub <noreply@github.com>2018-09-22 20:54:43 +0200
commit785f68ef3366e93c17f190535ba5604896fcf21c (patch)
tree791537f3023b546702c6fb7561e9d1cd165a5b6e /src/CMakeLists.txt
parent79e393cf4b5027eb9071df23f4834aac3f3a689f (diff)
downloadminetest-785f68ef3366e93c17f190535ba5604896fcf21c.tar.gz
minetest-785f68ef3366e93c17f190535ba5604896fcf21c.tar.bz2
minetest-785f68ef3366e93c17f190535ba5604896fcf21c.zip
Make OpenGL preference configurable, default to LEGACY (#7666)
This partially reverts 1ec5028 Add option OPENGL_GL_PREFERENCE
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index dbb9e5c6a..05446c084 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -296,7 +296,11 @@ else()
if(NOT HAIKU)
find_package(X11 REQUIRED)
endif(NOT HAIKU)
- set(OpenGL_GL_PREFERENCE "GLVND")
+
+ set(OPENGL_GL_PREFERENCE "LEGACY" CACHE STRING
+ "See CMake Policy CMP0072 for reference. GLVND is broken on some nvidia setups")
+ set(OpenGL_GL_PREFERENCE ${OPENGL_GL_PREFERENCE})
+
find_package(OpenGL REQUIRED)
find_package(JPEG REQUIRED)
find_package(BZip2 REQUIRED)