CMake: Force OpenGL to use legacy

This commit is contained in:
Chris Hennes
2025-02-25 13:26:02 -06:00
parent cf477695f9
commit 64e5e4a137

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)