summaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-02-24 20:04:29 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-02-24 20:04:29 +0100
commit7a2f602d3ab453c3a0724f4084d95140b1086c35 (patch)
treecf508e1ddc7e739c4ad1ba875ee8ac681a3257b3 /src/imports
parenta0d27513f4eff3f76fd85e6442aca443b7c05a53 (diff)
parent3eeaf987123f73ad7a4745745d9e7c70f30942cd (diff)
Merge remote-tracking branch 'origin/stable' into dev
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/shaders/shadereffectsource.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/shaders/shadereffectsource.cpp b/src/imports/shaders/shadereffectsource.cpp
index f58b5464..b5462c71 100644
--- a/src/imports/shaders/shadereffectsource.cpp
+++ b/src/imports/shaders/shadereffectsource.cpp
@@ -285,7 +285,8 @@ void ShaderEffectSource::bind()
GLuint vwrap = (m_wrapMode == Repeat || m_wrapMode == RepeatVertically) ? GL_REPEAT : GL_CLAMP_TO_EDGE;
#if !defined(QT_OPENGL_ES_2)
- glEnable(GL_TEXTURE_2D);
+ if (!QOpenGLFunctions::isES())
+ glEnable(GL_TEXTURE_2D);
#endif
if (m_fbo && m_fbo->isValid()) {