mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Need to restore initial values for glClearColor at end
This commit is contained in:
parent
a07cfd4915
commit
a43fe491f3
@ -922,6 +922,7 @@ static void glui_frame(void)
|
||||
glui_draw_cursor(gl, glui, &white_bg[0], mouse_x, mouse_y, width, height);
|
||||
}
|
||||
|
||||
menu_display_restore_clear_color(gl);
|
||||
menu_display_ctl(MENU_DISPLAY_CTL_UNSET_VIEWPORT, NULL);
|
||||
}
|
||||
|
||||
|
@ -596,6 +596,13 @@ void menu_display_frame_background(
|
||||
gl->coords.color = gl->white_color_ptr;
|
||||
}
|
||||
|
||||
void menu_display_restore_clear_color(void *data)
|
||||
{
|
||||
(void)data;
|
||||
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 0.00f);
|
||||
}
|
||||
|
||||
void menu_display_clear_color(void *data, float r, float g, float b, float a)
|
||||
{
|
||||
glClearColor(r, g, b, a);
|
||||
|
@ -124,6 +124,8 @@ void menu_display_frame_background(
|
||||
enum menu_display_prim_type prim_type
|
||||
);
|
||||
|
||||
void menu_display_restore_clear_color(void *data);
|
||||
|
||||
void menu_display_clear_color(void *data, float r, float g, float b, float a);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user