diff options
author | vaxerski <[email protected]> | 2022-06-07 20:10:14 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-06-07 20:10:14 +0200 |
commit | cc80b6854583a00ff04133dee551986b0d908d53 (patch) | |
tree | 6a43927d7f6bcad1b64670d87c41ecd7a83640e5 | |
parent | 2bddfa81bcc473e82285aecbc3b28c0a246217eb (diff) | |
download | Hyprland-cc80b6854583a00ff04133dee551986b0d908d53.tar.gz Hyprland-cc80b6854583a00ff04133dee551986b0d908d53.zip |
fixed a typo, will boost performance on opaque windows with blur
-rw-r--r-- | src/render/OpenGL.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 1cb5bae9..1e57e6a6 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -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); |