deny glsl by limited NPOT, not GLSL

BUG: 278828
REVIEW: 103283
This commit is contained in:
Thomas Lübking 2011-11-28 19:58:44 +01:00
parent 8503b6c2a1
commit 82bf9d2d44

View file

@ -336,7 +336,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;
}