mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 03:05:59 +01:00
fixed a typo, will boost performance on opaque windows with blur
This commit is contained in:
parent
2bddfa81bc
commit
cc80b68545
1 changed files with 4 additions and 2 deletions
|
@ -558,8 +558,10 @@ void CHyprOpenGLImpl::renderTextureWithBlur(const CTexture& tex, wlr_box* pBox,
|
|||
pixman_region32_copy(&inverseOpaque, &damage);
|
||||
}
|
||||
|
||||
if (!pixman_region32_not_empty(&damage))
|
||||
return; // if its empty, reject.
|
||||
if (!pixman_region32_not_empty(&inverseOpaque)) {
|
||||
renderTexture(tex, pBox, a, round, false, border); // reject blurring a fully opaque window
|
||||
return;
|
||||
}
|
||||
|
||||
// blur the main FB, it will be rendered onto the mirror
|
||||
const auto POUTFB = blurMainFramebufferWithDamage(a, pBox, &inverseOpaque);
|
||||
|
|
Loading…
Reference in a new issue