mirror of
https://github.com/n64dev/cen64.git
synced 2024-06-22 05:52:37 -04:00
Clear the frame buffer to avoid garbage. (#133)
Some graphics stacks just suck (like AMD + Mesa), so we have to clear the frame buffer on each frame, otherwise garbage and/or flickering appears on undrawn areas. Fixes #53.
This commit is contained in:
parent
607dc12ecf
commit
fd4cb9be51
|
@ -51,6 +51,8 @@ void gl_window_render_frame(struct vi_controller *vi, const uint8_t *buffer,
|
|||
unsigned hres, unsigned vres, unsigned hskip, unsigned type) {
|
||||
float aspect;
|
||||
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
switch(type) {
|
||||
case 0:
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue