Skip to content

Commit

Permalink
Added missing glClear for simple images
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
  • Loading branch information
Almamu committed Oct 29, 2022
1 parent c9f8624 commit da6dca0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/WallpaperEngine/Render/Objects/CImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ void CImage::simpleRender ()
{
ITexture* input = this->m_mainFBO;

// clear the main framebuffer
glBindFramebuffer (GL_FRAMEBUFFER, this->m_mainFBO->getFramebuffer ());
// attach the main texture
glClear (GL_COLOR_BUFFER_BIT);

// FIXME: THIS IS A QUICK HACK FOR ANIMATED IMAGES, IF ANY OF THOSE HAVE ANY EFFECT ON THEM THIS WILL LIKELY BREAK
if (this->getTexture ()->isAnimated () == true)
{
Expand Down

0 comments on commit da6dca0

Please # to comment.