aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}
}