aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <mgraesslin@kde.org>2011-08-19 19:30:45 (GMT)
committerMartin Gräßlin <mgraesslin@kde.org>2011-08-19 19:30:45 (GMT)
commit2432be11a5e44a53079e166c4e06f85f58eb65ef (patch)
treed7fec1cc539410a841f33b615516940b4ff5df34
parente2dd3629c65ddd3fbd77a490d63306f89f7172d4 (diff)
Ignore driver checks for GLSL and limited GLSL on GLES
Makes KWin support OpenGL ES on the ExoPC.
-rw-r--r--kwin/libkwineffects/kwinglutils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kwin/libkwineffects/kwinglutils.cpp b/kwin/libkwineffects/kwinglutils.cpp
index 9875d52..87a4625 100644
--- a/kwin/libkwineffects/kwinglutils.cpp
+++ b/kwin/libkwineffects/kwinglutils.cpp
@@ -788,11 +788,13 @@ bool GLShader::compile(GLuint program, GLenum shaderType, const QByteArray &sour
bool GLShader::load(const QByteArray &vertexSource, const QByteArray &fragmentSource)
{
+#ifndef KWIN_HAVE_OPENGLES
// Make sure shaders are actually supported
if (!GLPlatform::instance()->supports(GLSL) || GLPlatform::instance()->supports(LimitedGLSL)) {
kError(1212) << "Shaders are not supported";
return false;
}
+#endif
// Create the shader program
mProgram = glCreateProgram();