From 059e80c15e819c685f50ad18f4f5d5e39caedf39 Mon Sep 17 00:00:00 2001 From: Wouter Becq Date: Sat, 29 Nov 2008 10:58:14 +0000 Subject: [PATCH] fix compile without opengl svn path=/trunk/KDE/kdebase/workspace/; revision=890431 --- effects/shadow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/shadow.cpp b/effects/shadow.cpp index 2c531ab128..67c8263ed9 100644 --- a/effects/shadow.cpp +++ b/effects/shadow.cpp @@ -615,6 +615,7 @@ void ShadowEffect::restoreRenderStates( GLTexture *texture, double opacity, doub void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector verts, QVector texCoords, QColor color, QRegion region, float opacity, float brightness, float saturation ) { +#ifdef KWIN_HAVE_OPENGL_COMPOSITING if( color.isValid() ) glColor4f( color.redF(), color.greenF(), color.blueF(), 1.0 ); else @@ -629,6 +630,7 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector vert texture->disableNormalizedTexCoords(); texture->unbind(); restoreRenderStates( texture, opacity, brightness, saturation ); +#endif } void ShadowEffect::drawShadowQuadXRender( XRenderPicture *picture, QRect rect, float xScale, float yScale,