mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Only set video.shader_enable to false if video_driver_set_shader
fails
This commit is contained in:
parent
541c1b34e1
commit
a56afd8b8f
@ -257,10 +257,11 @@ void menu_shader_manager_set_preset(void *data,
|
||||
bool refresh = false;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
settings->video.shader_enable = false;
|
||||
|
||||
if (!video_driver_set_shader((enum rarch_shader_type)type, preset_path))
|
||||
{
|
||||
settings->video.shader_enable = false;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Makes sure that we use Menu Preset shader on driver reinit.
|
||||
* Only do this when the cgp actually works to avoid potential errors. */
|
||||
|
Loading…
Reference in New Issue
Block a user