On Wednesday 17 August 2011 16:56:36 Sebastian Kügler wrote: > Is there a workaround for this, or do hardware or driver simply not allow > using GLES on this machine? try the attached patch - it should disable the check for GLES.
Making shaders work for limited GLSL is the top item on my TODO list :-) Cheers Martin > > Packages from master are being built, so we can test this at runtime. > > Cheers, > -- > sebas > > http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9 > _______________________________________________ > kwin mailing list > k...@kde.org > https://mail.kde.org/mailman/listinfo/kwin >
diff --git a/kwin/libkwineffects/kwinglutils.cpp b/kwin/libkwineffects/kwinglutils.cpp index 2f5e613..e1d5b7b 100644 --- a/kwin/libkwineffects/kwinglutils.cpp +++ b/kwin/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();
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel