From b016b618b5d243b872a977139d49f18f7f0325ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 19 Aug 2011 21:30:45 +0200 Subject: [PATCH] Ignore driver checks for GLSL and limited GLSL on GLES Makes KWin support OpenGL ES on the ExoPC. --- libkwineffects/kwinglutils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp index 19b4ebb011..9e93e57613 100644 --- a/libkwineffects/kwinglutils.cpp +++ b/libkwineffects/kwinglutils.cpp @@ -334,11 +334,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();