[glplatform] Ensure glsl is supported with OpenGLES

No matter what our checks say on OpenGLES we have shaders.
This commit is contained in:
Martin Gräßlin 2015-11-02 11:13:26 +01:00
parent 1170303fc6
commit 99ddcfbac0

View file

@ -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)