summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-08-28 08:30:32 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-08-28 08:35:13 +0300
commit5bbd3b72540fd24ecb4538627e01bffe3d03acc6 (patch)
tree44b2bc8d848835bdc9e8e486c86b1a9a8ae161e6 /src
parent8915a6a3daa76ff79b39387758537b93d7b7efa5 (diff)
OpenGL ES2 compilation fix
Change-Id: Id27e5ab58c3b4e0042e4dea2841480971665bb7a Change-Id: Id27e5ab58c3b4e0042e4dea2841480971665bb7a Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/datavis3d/engine/bars3drenderer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/datavis3d/engine/bars3drenderer.cpp b/src/datavis3d/engine/bars3drenderer.cpp
index 7dc5b4aa..ce05b0b9 100644
--- a/src/datavis3d/engine/bars3drenderer.cpp
+++ b/src/datavis3d/engine/bars3drenderer.cpp
@@ -1649,7 +1649,9 @@ void Bars3dRenderer::updateSlicingActive(bool isSlicing)
m_mainViewPort = QRect(0, 0, this->m_cachedBoundingRect.width(),
this->m_cachedBoundingRect.height());
initSelectionBuffer(); // We need to re-init selection buffer in case there has been a resize
+#if !defined(QT_OPENGL_ES_2)
updateDepthBuffer(); // Re-init depth buffer as well
+#endif
}
}