From ddcd4c6a1f68febb50ec303212889e9520241a84 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 29 Dec 2020 14:06:18 +0100 Subject: [PATCH] Avoid crashes when a not implemented Pipeline is chosen in old platformse --- menu/menu_defines.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/menu/menu_defines.h b/menu/menu_defines.h index 2458bcfe47..497ffdf84b 100644 --- a/menu/menu_defines.h +++ b/menu/menu_defines.h @@ -279,6 +279,7 @@ enum xmb_icon_theme enum xmb_shader_pipeline { +#ifndef HAVE_PSGL XMB_SHADER_PIPELINE_WALLPAPER = 0, XMB_SHADER_PIPELINE_SIMPLE_RIBBON, XMB_SHADER_PIPELINE_RIBBON, @@ -287,6 +288,16 @@ enum xmb_shader_pipeline XMB_SHADER_PIPELINE_BOKEH, XMB_SHADER_PIPELINE_SNOWFLAKE, XMB_SHADER_PIPELINE_LAST +#else + XMB_SHADER_PIPELINE_WALLPAPER = 0, + XMB_SHADER_PIPELINE_SIMPLE_RIBBON, + XMB_SHADER_PIPELINE_RIBBON, + XMB_SHADER_PIPELINE_LAST, + XMB_SHADER_PIPELINE_SIMPLE_SNOW, + XMB_SHADER_PIPELINE_SNOW, + XMB_SHADER_PIPELINE_BOKEH, + XMB_SHADER_PIPELINE_SNOWFLAKE +#endif }; enum rgui_thumbnail_scaler