From a3e17807a71c83f8e796d34f5d95092e02f9a66c Mon Sep 17 00:00:00 2001 From: Sean McGovern Date: Mon, 2 Aug 2021 14:22:35 -0400 Subject: [PATCH] cmake: use vendor-neutral GL implementation when available; fallback to legacy GL --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e5d446c65..0725795392 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1954,7 +1954,7 @@ if(WIN32) set(GlslangLibs ${GlslangLibs} spirv-cross-hlsl) endif() -if(OpenGL_OpenGL_FOUND AND NOT APPLE) +if(OPENGL_opengl_LIBRARY AND OpenGL_GL_PREFERENCE STREQUAL GLVND AND NOT APPLE) set(OPENGL_LIBRARIES OpenGL::OpenGL) endif()