SDL: Fix flickering outside of display area

This commit is contained in:
Connor McLaughlin 2019-09-29 18:11:38 +10:00
parent e8fc05fef5
commit 314fad27f1
1 changed files with 1 additions and 0 deletions

View File

@ -379,6 +379,7 @@ bool SDLInterface::PassEventToImGui(const SDL_Event* event)
void SDLInterface::Render()
{
glBindFramebuffer(GL_FRAMEBUFFER, 0);
glDisable(GL_SCISSOR_TEST);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);