summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2022-11-15 23:22:05 +0100
committerGitHub <noreply@github.com>2022-11-15 23:22:05 +0100
commit7c064bb64135bd94417ec7a52eeb2bee0a115075 (patch)
tree7b7d077b6a55a4f784163075abba85e99934bf03
parent969f3daea0eed3deb26c47365b1a03a9629d48b5 (diff)
parent1e71120bdacb6f5ec4c90fb4c1365f76ecea7ff9 (diff)
Merge pull request #729 from mglisse/qglviewer27
Handle QGLViewer >= 2.7.0
-rw-r--r--src/GudhUI/view/Viewer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GudhUI/view/Viewer.cpp b/src/GudhUI/view/Viewer.cpp
index 6b17c833..2c00f86f 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() {