From 8aa63d77539924e6ddf41aa5e1399554ff491ae4 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 6 Jan 2016 13:02:52 +0100 Subject: Scatterplot: Added boolean to emphasize intention in updateSplat(). --- scatterplot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scatterplot.cpp') 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(); } } -- cgit v1.2.3