try to fix shader preset loading on WiiU

This commit is contained in:
Andrés 2018-02-12 12:27:16 -05:00 committed by GitHub
parent c6a9967b58
commit d3504abc5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -447,10 +447,10 @@ static void *wiiu_gfx_init(const video_info_t *video,
if(settings->bools.video_shader_enable)
{
const char* ext = retroarch_get_shader_preset();
const char* ext = path_get_extension(retroarch_get_shader_preset());
if(ext && !strncmp(ext, "slang", 5))
wiiu_gfx_set_shader(wiiu, RARCH_SHADER_SLANG, settings->paths.path_shader);
wiiu_gfx_set_shader(wiiu, RARCH_SHADER_SLANG, retroarch_get_shader_preset());
}
return wiiu;