@@ -335,10 +335,10 @@ bool BlurEffect::enabledByDefault()
335335
336336bool BlurEffect::supported ()
337337{
338- #ifdef KWIN_6_0
339- return effects->isOpenGLCompositing () && GLFramebuffer::supported () && GLFramebuffer::blitSupported ();
340- #else
338+ #ifdef KWIN_6_1_OR_GREATER
341339 return effects->openglContext () && (effects->openglContext ()->supportsBlits () || effects->waylandDisplay ());
340+ #else
341+ return effects->isOpenGLCompositing () && GLFramebuffer::supported () && GLFramebuffer::blitSupported ();
342342#endif
343343}
344344
@@ -879,10 +879,10 @@ GLTexture *BlurEffect::wallpaper(EffectWindow *desktop, const qreal &scale, cons
879879 const RenderViewport renderViewport (desktop->frameGeometry (), scale, renderTarget);
880880 WindowPaintData data;
881881
882- #ifdef KWIN_6_0
882+ #ifndef KWIN_6_1_OR_GREATER
883883 QMatrix4x4 projectionMatrix;
884- projectionMatrix.ortho (geometry);
885- data.setProjectionMatrix (projectionMatrix);
884+ projectionMatrix.ortho (geometry);
885+ data.setProjectionMatrix (projectionMatrix);
886886#endif
887887
888888 GLFramebuffer::pushFramebuffer (desktopFramebuffer.get ());
@@ -928,7 +928,7 @@ GLTexture *BlurEffect::createStaticBlurTextureWayland(const Output *output, cons
928928 auto *shader = ShaderManager::instance ()->pushShader (ShaderTrait::MapTexture | ShaderTrait::TransformColorspace);
929929 shader->setColorspaceUniforms (
930930 ColorDescription::sRGB , renderTarget.colorDescription ()
931- #if !(defined(KWIN_6_1) || defined(KWIN_6_0))
931+ #ifdef KWIN_6_2_OR_GREATER
932932 , RenderingIntent::RelativeColorimetricWithBPC
933933#endif
934934 );
0 commit comments