GL: clear gl framebuffer before drawing a direct FB write

This commit is contained in:
Flyinghead 2018-09-29 18:10:43 +02:00
parent ac4a98ec85
commit 9de8379434
1 changed files with 2 additions and 0 deletions

View File

@ -1912,6 +1912,8 @@ bool RenderFrame()
} }
else else
{ {
glcache.ClearColor(0.f, 0.f, 0.f, 0.f);
glClear(GL_COLOR_BUFFER_BIT);
DrawFramebuffer(dc_width, dc_height); DrawFramebuffer(dc_width, dc_height);
} }
#if HOST_OS==OS_WINDOWS #if HOST_OS==OS_WINDOWS