mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 21:02:34 +08:00
Added missing glClear for simple images
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
c9f8624b8b
commit
da6dca0473
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user