mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
(XMB) Remove unnecessary menu_driver_ident check
This commit is contained in:
parent
6952f0709a
commit
6556dc8950
@ -5015,14 +5015,6 @@ static void xmb_render(void *data,
|
||||
GFX_ANIMATION_CLEAR_ACTIVE(p_anim);
|
||||
}
|
||||
|
||||
static bool xmb_shader_pipeline_active(unsigned menu_shader_pipeline)
|
||||
{
|
||||
if (string_is_equal(menu_driver_ident(), "xmb"))
|
||||
if (menu_shader_pipeline != XMB_SHADER_PIPELINE_WALLPAPER)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
static void xmb_draw_bg(
|
||||
void *userdata,
|
||||
gfx_display_t *p_disp,
|
||||
@ -5051,7 +5043,7 @@ static void xmb_draw_bg(
|
||||
draw.vertex_count = 4;
|
||||
draw.prim_type = GFX_DISPLAY_PRIM_TRIANGLESTRIP;
|
||||
draw.pipeline_id = 0;
|
||||
draw.pipeline_active = xmb_shader_pipeline_active(menu_shader_pipeline);
|
||||
draw.pipeline_active = (menu_shader_pipeline == XMB_SHADER_PIPELINE_WALLPAPER) ? false : true;
|
||||
|
||||
if (dispctx->blend_begin)
|
||||
dispctx->blend_begin(userdata);
|
||||
|
Loading…
x
Reference in New Issue
Block a user