diff options
Diffstat (limited to 'src/imports/shaders')
-rw-r--r-- | src/imports/shaders/shadereffectsource.cpp | 3 |
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()) { |