Commit 81f38abe authored by Alex Nemeth's avatar Alex Nemeth
Browse files

[effects/blur] Check for blitting support

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:
parent b3b691a2
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment