mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 00:40:26 +00:00
(menu display GL) Attach white texture to draw info struct if NULL
This commit is contained in:
parent
5f0aa1852e
commit
19e86256a7
@ -177,14 +177,18 @@ static void menu_display_gl_draw_bg(void *data)
|
|||||||
draw->x = 0;
|
draw->x = 0;
|
||||||
draw->y = 0;
|
draw->y = 0;
|
||||||
draw->coords = &coords;
|
draw->coords = &coords;
|
||||||
|
|
||||||
|
if (!draw->texture)
|
||||||
|
draw->texture = menu_display_white_texture;
|
||||||
|
|
||||||
draw->matrix_data = (math_matrix_4x4*)
|
draw->matrix_data = (math_matrix_4x4*)
|
||||||
menu_display_gl_get_default_mvp();
|
menu_display_gl_get_default_mvp();
|
||||||
|
|
||||||
menu_display_gl_draw(draw);
|
menu_display_gl_draw(draw);
|
||||||
|
|
||||||
menu_display_gl_blend_end();
|
|
||||||
|
|
||||||
gl->coords.color = gl->white_color_ptr;
|
gl->coords.color = gl->white_color_ptr;
|
||||||
|
|
||||||
|
menu_display_gl_blend_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void menu_display_gl_restore_clear_color(void)
|
static void menu_display_gl_restore_clear_color(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user