Skip to content

Commit

Permalink
Merge pull request #145 from taj-ny/free-textures
Browse files Browse the repository at this point in the history
blur: free the window's blur textures if it has fake blur
  • Loading branch information
taj-ny authored Dec 19, 2024
2 parents 6c5705e + 84ebeed commit 0d8563f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,10 @@ void BlurEffect::blur(BlurRenderData &renderInfo, const RenderTarget &renderTarg
GLTexture *fakeBlurTexture = nullptr;
if (w && hasFakeBlur(w)) {
fakeBlurTexture = ensureFakeBlurTexture(m_currentScreen, renderTarget);
if (fakeBlurTexture) {
renderInfo.textures.clear();
renderInfo.framebuffers.clear();
}
}

if (!fakeBlurTexture
Expand Down

0 comments on commit 0d8563f

Please sign in to comment.