Avoid crashes when a not implemented Pipeline is chosen in old platformse

This commit is contained in:
unknown 2020-12-29 14:06:18 +01:00
parent ab7b4db9f2
commit ddcd4c6a1f

View File

@ -279,6 +279,7 @@ enum xmb_icon_theme
enum xmb_shader_pipeline enum xmb_shader_pipeline
{ {
#ifndef HAVE_PSGL
XMB_SHADER_PIPELINE_WALLPAPER = 0, XMB_SHADER_PIPELINE_WALLPAPER = 0,
XMB_SHADER_PIPELINE_SIMPLE_RIBBON, XMB_SHADER_PIPELINE_SIMPLE_RIBBON,
XMB_SHADER_PIPELINE_RIBBON, XMB_SHADER_PIPELINE_RIBBON,
@ -287,6 +288,16 @@ enum xmb_shader_pipeline
XMB_SHADER_PIPELINE_BOKEH, XMB_SHADER_PIPELINE_BOKEH,
XMB_SHADER_PIPELINE_SNOWFLAKE, XMB_SHADER_PIPELINE_SNOWFLAKE,
XMB_SHADER_PIPELINE_LAST 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 enum rgui_thumbnail_scaler