summaryrefslogtreecommitdiff
path: root/debian/patches/0005-Support-QGLViewer-2.7.patch
blob: 2f367d5f21a07b8f304a33cdc20bd8bda0507df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Gard Spreemann <gspr@nonempty.org>
Date: Mon, 14 Nov 2022 17:28:23 +0100
Subject: Support QGLViewer >=2.7

This is Marc Glisse's commit 1e71120bdacb6f5ec4c90fb4c1365f76ecea7ff9
proposed upstream.
---
 src/GudhUI/view/Viewer.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/GudhUI/view/Viewer.cpp b/src/GudhUI/view/Viewer.cpp
index 6b17c83..2c00f86 100644
--- a/src/GudhUI/view/Viewer.cpp
+++ b/src/GudhUI/view/Viewer.cpp
@@ -31,7 +31,11 @@ void Viewer::set_bounding_box(const Point_3 & lower_left, const Point_3 & upper_
 }
 
 void Viewer::update_GL() {
+#if QGLVIEWER_VERSION >= 0x020700
+  this->update();
+#else
   this->updateGL();
+#endif
 }
 
 void Viewer::init_scene() {