[Bf-blender-cvs] [e07b6774047] x11-egl: GHOST/X11: link libGL for EGL to resolve OpenGL symbols

Christian Rauch noreply at git.blender.org
Mon Aug 9 21:53:31 CEST 2021


Commit: e07b67740471c2422c9166bee83f619a16fb8fb4
Author: Christian Rauch
Date:   Mon Aug 9 20:52:23 2021 +0100
Branches: x11-egl
https://developer.blender.org/rBe07b67740471c2422c9166bee83f619a16fb8fb4

GHOST/X11: link libGL for EGL to resolve OpenGL symbols

This links libGL, since libOpenGL is not installed by default on some
distributions. This is a workaround to resolve OpenGL symbols, that are
otherwise resolved via GLVND.

Differential Revision: https://developer.blender.org/D12034

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ae2d4b1c8cb..49266c02a16 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1189,7 +1189,11 @@ endif()
 
 if(WITH_GL_EGL)
   find_package(OpenGL REQUIRED EGL)
-  list(APPEND BLENDER_GL_LIBRARIES OpenGL::EGL)
+  list(APPEND BLENDER_GL_LIBRARIES ${OPENGL_egl_LIBRARY})
+
+  # TODO: This links libGL, since libOpenGL is not installed by default on some
+  # distributions. This should be removed once GLVND is properly supported.
+  list(APPEND BLENDER_GL_LIBRARIES ${OPENGL_gl_LIBRARY})
 
   list(APPEND GL_DEFINITIONS -DWITH_GL_EGL -DGLEW_EGL -DGLEW_INC_EGL)



More information about the Bf-blender-cvs mailing list