diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-09 21:37:41 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-09 21:37:41 +0200 |
| commit | ef21baaf887c2f84140bc988eda49e5e052758e6 (patch) | |
| tree | 22f1ec44e9c940df818bae88c48303cd50bbd454 /src/render/OpenGL.hpp | |
| parent | d70de566c46cca773baf1fc45e487f772863eed6 (diff) | |
Optimize blur massively and some fixes
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index c19ba395..8affb39d 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -56,7 +56,7 @@ public: void renderRect(wlr_box*, const CColor&); void renderTexture(wlr_texture*, wlr_box*, float a, int round = 0); void renderTexture(const CTexture&, wlr_box*, float a, int round = 0); - void renderTextureWithBlur(const CTexture&, wlr_box*, float a, int round = 0); + void renderTextureWithBlur(const CTexture&, wlr_box*, float a, wlr_surface* pSurface, int round = 0); void renderBorder(wlr_box*, const CColor&, int thick = 1, int round = 0); void makeWindowSnapshot(CWindow*); @@ -102,7 +102,7 @@ private: void createBGTextureForMonitor(SMonitor*); // returns the out FB, can be either Mirror or MirrorSwap - CFramebuffer* blurMainFramebufferWithDamage(float a, wlr_box* pBox); + CFramebuffer* blurMainFramebufferWithDamage(float a, wlr_box* pBox, pixman_region32_t* damage); void renderTextureInternal(const CTexture&, wlr_box* pBox, float a, int round = 0, bool discardOpaque = false); void renderTextureWithBlurInternal(const CTexture&, wlr_box*, float a, int round = 0); |
