fix compile without opengl
svn path=/trunk/KDE/kdebase/workspace/; revision=890431
This commit is contained in:
parent
1ad4bbfea3
commit
059e80c15e
1 changed files with 2 additions and 0 deletions
|
@ -615,6 +615,7 @@ void ShadowEffect::restoreRenderStates( GLTexture *texture, double opacity, doub
|
||||||
void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector<float> verts, QVector<float> texCoords,
|
void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector<float> verts, QVector<float> texCoords,
|
||||||
QColor color, QRegion region, float opacity, float brightness, float saturation )
|
QColor color, QRegion region, float opacity, float brightness, float saturation )
|
||||||
{
|
{
|
||||||
|
#ifdef KWIN_HAVE_OPENGL_COMPOSITING
|
||||||
if( color.isValid() )
|
if( color.isValid() )
|
||||||
glColor4f( color.redF(), color.greenF(), color.blueF(), 1.0 );
|
glColor4f( color.redF(), color.greenF(), color.blueF(), 1.0 );
|
||||||
else
|
else
|
||||||
|
@ -629,6 +630,7 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector<float> vert
|
||||||
texture->disableNormalizedTexCoords();
|
texture->disableNormalizedTexCoords();
|
||||||
texture->unbind();
|
texture->unbind();
|
||||||
restoreRenderStates( texture, opacity, brightness, saturation );
|
restoreRenderStates( texture, opacity, brightness, saturation );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShadowEffect::drawShadowQuadXRender( XRenderPicture *picture, QRect rect, float xScale, float yScale,
|
void ShadowEffect::drawShadowQuadXRender( XRenderPicture *picture, QRect rect, float xScale, float yScale,
|
||||||
|
|
Loading…
Reference in a new issue