25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
|
diff -Nru opencv_contrib-4.9.0/modules/rgbd.orig/CMakeLists.txt opencv_contrib-4.9.0/modules/rgbd/CMakeLists.txt
|
||
|
--- opencv_contrib-4.9.0/modules/rgbd.orig/CMakeLists.txt 2024-02-22 08:39:24.000000000 +0100
|
||
|
+++ opencv_contrib-4.9.0/modules/rgbd/CMakeLists.txt 2024-02-25 17:20:50.303652880 +0100
|
||
|
@@ -9,3 +9,8 @@
|
||
|
if(HAVE_OPENGL)
|
||
|
ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}")
|
||
|
endif()
|
||
|
+
|
||
|
+if(HAVE_GLEW)
|
||
|
+ ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES} ${GLEW_LIBRARIES}")
|
||
|
+endif()
|
||
|
+
|
||
|
diff -Nru opencv_contrib-4.9.0/modules/rgbd.orig/src/dynafu.cpp opencv_contrib-4.9.0/modules/rgbd/src/dynafu.cpp
|
||
|
--- opencv_contrib-4.9.0/modules/rgbd.orig/src/dynafu.cpp 2024-02-22 11:21:30.045231678 +0100
|
||
|
+++ opencv_contrib-4.9.0/modules/rgbd/src/dynafu.cpp 2024-02-25 17:15:14.492239769 +0100
|
||
|
@@ -153,7 +153,7 @@
|
||
|
params.raycast_step_factor)),
|
||
|
pyrPoints(), pyrNormals(), warpfield()
|
||
|
{
|
||
|
-#ifdef HAVE_OPENGL
|
||
|
+#ifdef HAVE_GLEW
|
||
|
// Bind framebuffer for off-screen rendering
|
||
|
unsigned int fbo_depth;
|
||
|
glGenRenderbuffersEXT(1, &fbo_depth);
|