Prevent the logout effect from crashing KWin on quit if blur is not

supported.

svn path=/trunk/KDE/kdebase/workspace/; revision=926395
icc-effect-5.14.5
Lucas Murray 2009-02-15 10:34:41 +00:00
parent d072b5d1b7
commit f5790fcce1
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ LogoutEffect::LogoutEffect()
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
blurSupported = false;
blurTexture = NULL;
blurTarget = NULL;
if( effects->compositingType() == OpenGLCompositing && GLTexture::NPOTTextureSupported() )
{ // TODO: It seems that it is not possible to create a GLRenderTarget that has
// a different size than the display right now. Most likely a KWin core bug.