From 99ddcfbac02ea17b65e10b8070173eb99524bdd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 2 Nov 2015 11:13:26 +0100 Subject: [PATCH] [glplatform] Ensure glsl is supported with OpenGLES No matter what our checks say on OpenGLES we have shaders. --- libkwineffects/kwinglplatform.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libkwineffects/kwinglplatform.cpp b/libkwineffects/kwinglplatform.cpp index ba1d4c2a2e..6e5a67e292 100644 --- a/libkwineffects/kwinglplatform.cpp +++ b/libkwineffects/kwinglplatform.cpp @@ -857,6 +857,12 @@ void GLPlatform::detect(OpenGLPlatformInterface platformInterface) m_virtualMachine = true; m_recommendedCompositor = OpenGL2Compositing; } + + // and force back to shader supported on gles, we wouldn't have got a context if not supported + if (isGLES()) { + m_supportsGLSL = true; + m_limitedGLSL = false; + } } static void print(const QString &label, const QString &setting)