summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2011-11-28 18:58:44 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2011-11-29 21:29:20 (GMT)
commit4ed511fb7dcc8f099414157a85a11fb2f4f94449 (patch)
tree75461939e641d4f00be04df95c51ed228cfb9fb3
parentad19ecafec7308ae2e3c0521fd43276818dde336 (diff)
deny glsl by limited NPOT, not GLSL
BUG: 278828 REVIEW: 103283 FIXED-IN:4.7.4 (cherry picked from commit d5d77e6424c4ee93b9ca500de41527375d67670e)
-rw-r--r--kwin/libkwineffects/kwinglutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kwin/libkwineffects/kwinglutils.cpp b/kwin/libkwineffects/kwinglutils.cpp
index b151762..5fd2dcf 100644
--- a/kwin/libkwineffects/kwinglutils.cpp
+++ b/kwin/libkwineffects/kwinglutils.cpp
@@ -797,7 +797,7 @@ bool GLShader::load(const QByteArray &vertexSource, const QByteArray &fragmentSo
{
#ifndef KWIN_HAVE_OPENGLES
// Make sure shaders are actually supported
- if (!GLPlatform::instance()->supports(GLSL) || GLPlatform::instance()->supports(LimitedGLSL)) {
+ if (!GLPlatform::instance()->supports(GLSL) || GLPlatform::instance()->supports(LimitedNPOT)) {
kError(1212) << "Shaders are not supported";
return false;
}