From ae40bce25d88eb669f9bdbdf796d1ba0f1ebe8fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 1 Jun 2011 18:21:19 +0200 Subject: [PATCH] Disable Shader Scene for LimitedGLSL GPUs This was causing problems with R300G. The GPU supports only limited GLSL and seems not to be up to rendering the scene appropriate. So let's better disable the OpenGL 2 branch for such GPUs. If the user really wants to use it, there is the GLES backend which does not check for limited GLSL. BUG: 274457 CCBUG: 274607 FIXED-IN: 4.7.0 --- libkwineffects/kwinglutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp index caf91681ce..6eddb4ae8c 100644 --- a/libkwineffects/kwinglutils.cpp +++ b/libkwineffects/kwinglutils.cpp @@ -790,7 +790,7 @@ bool GLShader::compile(GLuint program, GLenum shaderType, const QByteArray &sour bool GLShader::load(const QByteArray &vertexSource, const QByteArray &fragmentSource) { // Make sure shaders are actually supported - if (!GLPlatform::instance()->supports(GLSL)) { + if (!GLPlatform::instance()->supports(GLSL) || GLPlatform::instance()->supports(LimitedGLSL)) { kError(1212) << "Shaders are not supported"; return false; }