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