Merge pull request #19860 from chennes/cmakeOpenGLLegacy

CMake: Force OpenGL to use legacy
This commit is contained in:
Chris Hennes
2025-02-26 01:29:19 +00:00
committed by GitHub

View File

@@ -1,6 +1,11 @@
macro(SetupOpenGL)
# -------------------------------- OpenGL --------------------------------
# If on a system with both a legacy GL library and GLVND, prefer the legacy library.
# This is probably needed until we no longer have any gl.*ARB calls in the codebase
# See, e.g. SoBrepFaceSet.cpp
set(OpenGL_GL_PREFERENCE LEGACY)
find_package(OpenGL)
include(FindPackageMessage)
if(OPENGL_GLU_FOUND)