diff --git a/gfx/gfx_display.c b/gfx/gfx_display.c index 77be7676ac..5b38594782 100644 --- a/gfx/gfx_display.c +++ b/gfx/gfx_display.c @@ -558,7 +558,7 @@ void gfx_display_draw_quad( draw.height = h; draw.coords = &coords; draw.matrix_data = NULL; - draw.texture = (texture != NULL) ? *texture : gfx_display_white_texture; + draw.texture = (texture != 0) ? *texture : gfx_display_white_texture; draw.prim_type = GFX_DISPLAY_PRIM_TRIANGLESTRIP; draw.pipeline_id = 0; draw.scale_factor = 1.0f; diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 50248d8bcd..aace27ad4f 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -5244,6 +5244,7 @@ static void materialui_render_background( draw.pipeline_active = false; draw.backend_data = NULL; draw.color = draw_color; + draw.texture = 0; if (mui->textures.bg && !libretro_running) { @@ -5256,8 +5257,6 @@ static void materialui_render_background( } else { - draw.texture = gfx_display_white_texture; - /* Copy 'list_background' colour to draw colour */ memcpy(draw_color, mui->colors.list_background, sizeof(draw_color));