do not query GLPlatform if not GL compositing
BUG: 342982 REVIEW: 122120
This commit is contained in:
parent
f82a6a545c
commit
04724a15b6
1 changed files with 6 additions and 4 deletions
|
@ -61,6 +61,7 @@ LogoutEffect::LogoutEffect()
|
||||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||||
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
||||||
|
|
||||||
|
if (effects->isOpenGLCompositing()) {
|
||||||
#ifdef KWIN_HAVE_OPENGLES
|
#ifdef KWIN_HAVE_OPENGLES
|
||||||
const qint64 coreVersionNumber = kVersionNumber(3, 0);
|
const qint64 coreVersionNumber = kVersionNumber(3, 0);
|
||||||
#else
|
#else
|
||||||
|
@ -69,6 +70,7 @@ LogoutEffect::LogoutEffect()
|
||||||
if (GLPlatform::instance()->glslVersion() >= coreVersionNumber)
|
if (GLPlatform::instance()->glslVersion() >= coreVersionNumber)
|
||||||
m_shadersDir = QStringLiteral("kwin/shaders/1.40/");
|
m_shadersDir = QStringLiteral("kwin/shaders/1.40/");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LogoutEffect::~LogoutEffect()
|
LogoutEffect::~LogoutEffect()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue