From 7fd4eb3e897548d562cec7ef59e830b0c60ff62b Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 27 Jul 2017 09:37:20 +0200 Subject: [PATCH] Fix updateGL() bugs --- Polyhedron/demo/Polyhedron/MainWindow.h | 2 +- .../Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/MainWindow.h b/Polyhedron/demo/Polyhedron/MainWindow.h index 92aea2f202f..08a0cc15d2e 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.h +++ b/Polyhedron/demo/Polyhedron/MainWindow.h @@ -246,7 +246,7 @@ protected Q_SLOTS: //!and viewer accordingly. /*! * Set the scene selected item or selected item list. Sets the manipulated - * frame of the viewer to the new selected item's and calls updateGL(). + * frame of the viewer to the new selected item's and calls update(). */ void selectionChanged(); //! Scrolls to the new selected item from its name in the Geometric Objects list. diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp index ecbd4d01591..5488aea73c6 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp @@ -243,7 +243,7 @@ public Q_SLOTS: ui_widget.close_checkBox->isChecked()); } item->invalidateOpenGLBuffers(); - viewer->updateGL(); + viewer->update(); } else {