Prevent XRender mode from crashing when shadows are enabled.

svn path=/trunk/KDE/kdebase/workspace/; revision=872475
This commit is contained in:
Lucas Murray 2008-10-17 10:30:58 +00:00
parent 0442bcf1f7
commit 7597ce484e

View file

@ -265,6 +265,8 @@ void ShadowEffect::drawWindow( EffectWindow* w, int mask, QRegion region, Window
void ShadowEffect::buildQuads( EffectWindow* w, WindowQuadList& quadList ) void ShadowEffect::buildQuads( EffectWindow* w, WindowQuadList& quadList )
{ {
if( effects->compositingType() == XRenderCompositing )
return; // TODO: Disable quad-based shadows in XRender mode for the moment
if( effects->hasDecorationShadows() ) if( effects->hasDecorationShadows() )
{ {
// TODO: shadowQuads() is allowed to return different quads for // TODO: shadowQuads() is allowed to return different quads for