mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Clear out FBO on startup.
Some cores seem to rely on it?
This commit is contained in:
parent
1ba8c626ed
commit
37298876fc
@ -427,6 +427,13 @@ static bool gl_core_init_hw_render(gl_core_t *gl, unsigned width, unsigned heigh
|
||||
return false;
|
||||
}
|
||||
|
||||
if (hwr->depth && hwr->stencil)
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||
else if (hwr->depth)
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
else
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
gl->hw_render_enable = true;
|
||||
gl->hw_render_max_width = width;
|
||||
gl->hw_render_max_height = height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user