mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Cleanups
This commit is contained in:
parent
b3f486ae44
commit
5c0f7876b8
@ -73,15 +73,17 @@ static void menu_display_vk_draw(void *data)
|
|||||||
struct vk_vertex *pv = NULL;
|
struct vk_vertex *pv = NULL;
|
||||||
menu_display_ctx_draw_t *draw = (menu_display_ctx_draw_t*)data;
|
menu_display_ctx_draw_t *draw = (menu_display_ctx_draw_t*)data;
|
||||||
vk_t *vk = (vk_t*)video_driver_get_ptr(false);
|
vk_t *vk = (vk_t*)video_driver_get_ptr(false);
|
||||||
if (!vk)
|
|
||||||
|
if (!vk || !draw)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
texture = (struct vk_texture*)draw->texture;
|
texture = (struct vk_texture*)draw->texture;
|
||||||
mat = (math_matrix_4x4*)draw->matrix_data;
|
|
||||||
vertex = draw->coords->vertex;
|
vertex = draw->coords->vertex;
|
||||||
tex_coord = draw->coords->tex_coord;
|
tex_coord = draw->coords->tex_coord;
|
||||||
color = draw->coords->color;
|
color = draw->coords->color;
|
||||||
|
|
||||||
|
mat = (math_matrix_4x4*)draw->matrix_data;
|
||||||
|
|
||||||
/* TODO - edge case */
|
/* TODO - edge case */
|
||||||
if (draw->height <= 0)
|
if (draw->height <= 0)
|
||||||
draw->height = 1;
|
draw->height = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user