From 81f38abe6d6db94f56c0d2e857fd90cc1a73c293 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 fd9d8a201b..33511d30aa 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -333,7 +333,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;