From be3168b832fb050a9ee2c735dff7cceed077369e Mon Sep 17 00:00:00 2001 From: Alex Nemeth Date: Thu, 31 May 2018 21:02:05 +0200 Subject: [PATCH] [effects/blur] Check for blitting support Summary: In D12678 blur was changed to use `blitFromFramebuffer()` instead of `glCopyTexSubImage2D()` Now it checks if the GPU supports it. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D13246 --- effects/blur/blur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index a01236abdc..7a90c92d78 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -331,7 +331,7 @@ bool BlurEffect::enabledByDefault() bool BlurEffect::supported() { - bool supported = effects->isOpenGLCompositing() && GLRenderTarget::supported(); + bool supported = effects->isOpenGLCompositing() && GLRenderTarget::supported() && GLRenderTarget::blitSupported(); if (supported) { int maxTexSize;