aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-03-22 17:29:13 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2016-03-22 17:29:13 -0300
commit5f23b94dd70a75743901c1da4b3f37cc1fdd4c04 (patch)
tree00c8177cef55e7fc2770f6ddbb4ea3954e199573
parent57d2c6b922339bf6ea86856cb9d245218232cdfb (diff)
VoronoiSplat & LinePlot: fixed silly logic error.
-rw-r--r--lineplot.cpp4
-rw-r--r--voronoisplat.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/lineplot.cpp b/lineplot.cpp
index fb622ee..b4d7412 100644
--- a/lineplot.cpp
+++ b/lineplot.cpp
@@ -28,7 +28,7 @@ LinePlot::LinePlot(QQuickItem *parent)
, m_colorScaleChanged(false)
, m_bundleGPU(true)
{
- setTextureFollowsItemSize(true);
+ setTextureFollowsItemSize(false);
}
void LinePlot::setColorScale(const ColorScale *colorScale)
@@ -247,7 +247,7 @@ QOpenGLFramebufferObject *LinePlotRenderer::createFramebufferObject(const QSize
void LinePlotRenderer::render()
{
- if (!m_pointsChanged || !m_valuesChanged || !m_colormapChanged) {
+ if (!m_pointsChanged && !m_valuesChanged && !m_colormapChanged) {
return;
}
diff --git a/voronoisplat.cpp b/voronoisplat.cpp
index a6879fe..1b8e9f8 100644
--- a/voronoisplat.cpp
+++ b/voronoisplat.cpp
@@ -357,7 +357,7 @@ QOpenGLFramebufferObject *VoronoiSplatRenderer::createFramebufferObject(const QS
void VoronoiSplatRenderer::render()
{
- if (!m_sitesChanged || !m_valuesChanged || !m_colormapChanged) {
+ if (!m_sitesChanged && !m_valuesChanged && !m_colormapChanged) {
return;
}