From f4f839f7768b5a7d6b4133e4642a0e259c75de40 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 15 Apr 2016 03:14:08 +0200 Subject: [PATCH] Cleanups --- menu/drivers_display/menu_display_gl.c | 4 ++-- menu/drivers_display/menu_display_vulkan.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/menu/drivers_display/menu_display_gl.c b/menu/drivers_display/menu_display_gl.c index 4337467fee..6c13516002 100644 --- a/menu/drivers_display/menu_display_gl.c +++ b/menu/drivers_display/menu_display_gl.c @@ -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; diff --git a/menu/drivers_display/menu_display_vulkan.c b/menu/drivers_display/menu_display_vulkan.c index 98334806ef..07e89db5e5 100644 --- a/menu/drivers_display/menu_display_vulkan.c +++ b/menu/drivers_display/menu_display_vulkan.c @@ -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;