mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Cleanups
This commit is contained in:
parent
1583f7de97
commit
f4f839f776
@ -139,8 +139,8 @@ static void menu_display_gl_draw(void *data)
|
|||||||
static void menu_display_gl_draw_bg(void *data)
|
static void menu_display_gl_draw_bg(void *data)
|
||||||
{
|
{
|
||||||
struct gfx_coords coords;
|
struct gfx_coords coords;
|
||||||
const GLfloat *new_vertex = NULL;
|
const float *new_vertex = NULL;
|
||||||
const GLfloat *new_tex_coord = NULL;
|
const float *new_tex_coord = NULL;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
gl_t *gl = gl_get_ptr();
|
gl_t *gl = gl_get_ptr();
|
||||||
menu_display_ctx_draw_t *draw = (menu_display_ctx_draw_t*)data;
|
menu_display_ctx_draw_t *draw = (menu_display_ctx_draw_t*)data;
|
||||||
|
@ -157,6 +157,9 @@ static void menu_display_vk_draw_bg(void *data)
|
|||||||
coords.tex_coord = new_tex_coord;
|
coords.tex_coord = new_tex_coord;
|
||||||
coords.color = (const float*)draw->color;
|
coords.color = (const float*)draw->color;
|
||||||
|
|
||||||
|
if (!draw->texture)
|
||||||
|
draw->texture = menu_display_white_texture;
|
||||||
|
|
||||||
draw->x = 0;
|
draw->x = 0;
|
||||||
draw->y = 0;
|
draw->y = 0;
|
||||||
draw->coords = &coords;
|
draw->coords = &coords;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user