deny glsl by limited NPOT, not GLSL

BUG: 278828
REVIEW: 103283
icc-effect-5.14.5
Thomas Lübking 2011-11-28 19:58:44 +01:00
parent 8503b6c2a1
commit 82bf9d2d44
1 changed files with 1 additions and 1 deletions

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;
}