aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-06 13:02:52 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-06 13:02:52 +0100
commit8aa63d77539924e6ddf41aa5e1399554ff491ae4 (patch)
tree68df9072b31948f65cf93272795bfa480b5e4144
parentbc62e504146b13dada8f5245d2c9204a605aa464 (diff)
Scatterplot: Added boolean to emphasize intention in updateSplat().
-rw-r--r--scatterplot.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scatterplot.cpp b/scatterplot.cpp
index b9d7aea..8583235 100644
--- a/scatterplot.cpp
+++ b/scatterplot.cpp
@@ -243,7 +243,8 @@ void Scatterplot::updateSplat(QSGNode *node)
tex->setColormap(m_colorScale);
}
- if (tex->updateTexture()) {
+ bool updated = tex->updateTexture();
+ if (updated) {
window()->resetOpenGLState();
}
}