mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
fixed a typo, will boost performance on opaque windows with blur
This commit is contained in:
@@ -558,8 +558,10 @@ void CHyprOpenGLImpl::renderTextureWithBlur(const CTexture& tex, wlr_box* pBox,
|
|||||||
pixman_region32_copy(&inverseOpaque, &damage);
|
pixman_region32_copy(&inverseOpaque, &damage);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pixman_region32_not_empty(&damage))
|
if (!pixman_region32_not_empty(&inverseOpaque)) {
|
||||||
return; // if its empty, reject.
|
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
|
// blur the main FB, it will be rendered onto the mirror
|
||||||
const auto POUTFB = blurMainFramebufferWithDamage(a, pBox, &inverseOpaque);
|
const auto POUTFB = blurMainFramebufferWithDamage(a, pBox, &inverseOpaque);
|
||||||
|
Reference in New Issue
Block a user