summaryrefslogtreecommitdiffstats
path: root/src/datavisualization
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-09-18 13:13:57 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-09-18 13:17:16 +0300
commit0fdc5dc7d3a2c25614f2add474cf678c462f16d2 (patch)
tree9467c1ca8d4c2ab54927c90fe21a21cd2e601770 /src/datavisualization
parenta34fa48f1d9a82e5a3172417ee53bf0e0c4261b3 (diff)
ES2 tweak for surface
Change-Id: Ic80832ce0ca85e818ad4e063cbd052a5c003d73f Change-Id: Ic80832ce0ca85e818ad4e063cbd052a5c003d73f Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'src/datavisualization')
-rw-r--r--src/datavisualization/engine/surface3drenderer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/datavisualization/engine/surface3drenderer.cpp b/src/datavisualization/engine/surface3drenderer.cpp
index 251810a4..3505d304 100644
--- a/src/datavisualization/engine/surface3drenderer.cpp
+++ b/src/datavisualization/engine/surface3drenderer.cpp
@@ -93,6 +93,7 @@ Surface3DRenderer::Surface3DRenderer(Surface3DController *controller)
QObject::connect(m_controller, &Surface3DController::leftMousePressed, this,
&Surface3DRenderer::requestSelectionAtPoint); // TODO: Possible temp
+#if !defined(QT_OPENGL_ES_2)
// Check if flat feature is supported
ShaderHelper tester(this, QStringLiteral(":/shaders/vertexSurfaceFlat"),
QStringLiteral(":/shaders/fragmentSurfaceFlat"));
@@ -100,6 +101,7 @@ Surface3DRenderer::Surface3DRenderer(Surface3DController *controller)
m_flatSupported = false;
m_controller->setSmoothSurface(true);
}
+#endif
m_cachedSmoothSurface = m_controller->smoothSurface();
updateSurfaceGridStatus(m_controller->surfaceGrid());