Ignore driver checks for GLSL and limited GLSL on GLES

Makes KWin support OpenGL ES on the ExoPC.
This commit is contained in:
Martin Gräßlin 2011-08-19 21:30:45 +02:00
parent 62c5a5e276
commit b016b618b5

View file

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