Commit 809425f4 authored by Jan Möbius's avatar Jan Möbius
Browse files

Prevent viewerproperties from sending updates during rendering

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10439 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9e847557
...@@ -555,10 +555,13 @@ void glViewer::updateGL() ...@@ -555,10 +555,13 @@ void glViewer::updateGL()
void glViewer::drawScene() void glViewer::drawScene()
{ {
// Inside the glWidget rendering, the system should not send extra updates
properties_.blockSignals(true);
QTime timer; QTime timer;
timer.start(); timer.start();
// ***************************************************************** // *****************************************************************
// Adjust clipping planes // Adjust clipping planes
// ***************************************************************** // *****************************************************************
...@@ -581,9 +584,14 @@ void glViewer::drawScene() ...@@ -581,9 +584,14 @@ void glViewer::drawScene()
if (stereo_) drawScene_stereo(); if (stereo_) drawScene_stereo();
else drawScene_mono(); else drawScene_mono();
glFinish(); glFinish();
frame_time_ = timer.elapsed(); frame_time_ = timer.elapsed();
// Inside the glWidget rendering, the system should not send extra updates
properties_.blockSignals(false);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment