summaryrefslogtreecommitdiff
path: root/media-libs/opencv/files/opencv_contrib-4.8.1-rgbd.patch
blob: 0e1f12d6df46f87fd584509afc8a4a1daebb5bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From: Paul Zander <negril.nx+gentoo@gmail.com>

Fixes compilation when using GLVND.

diff --git a/modules/rgbd/CMakeLists.txt b/modules/rgbd/CMakeLists.txt
index 79e1562..eaebc3a 100644
--- a/modules/rgbd/CMakeLists.txt
+++ b/modules/rgbd/CMakeLists.txt
@@ -7,5 +7,5 @@ if(NOT HAVE_EIGEN)
 endif()
 
 if(HAVE_OPENGL)
-  ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}")
+  ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}" GL)
 endif()