diff --git a/lib/kwineffects.cpp b/lib/kwineffects.cpp index 86fdb7aee6..15d1bcf0de 100644 --- a/lib/kwineffects.cpp +++ b/lib/kwineffects.cpp @@ -294,8 +294,10 @@ bool EffectsHandler::saturationSupported() const { switch( compositing_type ) { +#ifdef KWIN_HAVE_OPENGL_COMPOSITING case OpenGLCompositing: return GLTexture::saturationSupported(); +#endif case XRenderCompositing: return false; // never default: