mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Menu displaylist - prevent segfault with shader parameters screen
when a shader has no parameters and handle does not exist
This commit is contained in:
parent
5e82940a08
commit
8fc40d2a2a
@ -6521,7 +6521,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
|
||||
{
|
||||
unsigned i;
|
||||
struct video_shader *shader = shader_info.data;
|
||||
size_t list_size = shader->num_parameters;
|
||||
size_t list_size = shader ? shader->num_parameters : 0;
|
||||
unsigned base_parameter = (type == DISPLAYLIST_SHADER_PARAMETERS)
|
||||
? MENU_SETTINGS_SHADER_PARAMETER_0
|
||||
: MENU_SETTINGS_SHADER_PRESET_PARAMETER_0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user