This commit is contained in:
twinaphex 2016-04-15 03:14:08 +02:00
parent 1583f7de97
commit f4f839f776
2 changed files with 5 additions and 2 deletions

View File

@ -139,8 +139,8 @@ static void menu_display_gl_draw(void *data)
static void menu_display_gl_draw_bg(void *data)
{
struct gfx_coords coords;
const GLfloat *new_vertex = NULL;
const GLfloat *new_tex_coord = NULL;
const float *new_vertex = NULL;
const float *new_tex_coord = NULL;
settings_t *settings = config_get_ptr();
gl_t *gl = gl_get_ptr();
menu_display_ctx_draw_t *draw = (menu_display_ctx_draw_t*)data;

View File

@ -157,6 +157,9 @@ static void menu_display_vk_draw_bg(void *data)
coords.tex_coord = new_tex_coord;
coords.color = (const float*)draw->color;
if (!draw->texture)
draw->texture = menu_display_white_texture;
draw->x = 0;
draw->y = 0;
draw->coords = &coords;