Ignore driver checks for GLSL and limited GLSL on GLES
Makes KWin support OpenGL ES on the ExoPC.
This commit is contained in:
parent
62c5a5e276
commit
b016b618b5
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue