mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Merge pull request #882 from Sonicadvance1/fix-pp-blackness
Fix PostProcessing shader garbage on screen.
This commit is contained in:
commit
c908a1e212
1 changed files with 11 additions and 1 deletions
|
@ -55,7 +55,17 @@ OpenGLPostProcessing::~OpenGLPostProcessing()
|
|||
|
||||
void OpenGLPostProcessing::BindTargetFramebuffer()
|
||||
{
|
||||
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, m_enable ? m_fbo : 0);
|
||||
if (m_enable)
|
||||
{
|
||||
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, m_fbo);
|
||||
// Clear the buffer so there isn't any remaining garbage from the previous post processing shader frame
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Bind to default framebuffer if we aren't post processing
|
||||
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void OpenGLPostProcessing::BlitToScreen()
|
||||
|
|
Loading…
Add table
Reference in a new issue