Shader parameters saving fix

It's @aliaspider code :p
This commit is contained in:
cucholix 2018-01-26 15:49:34 -03:00 committed by GitHub
parent fc0ea0c63f
commit de6c185e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1414,13 +1414,17 @@ static bool wiiu_gfx_set_shader(void *data,
return false;
}
config_file_free(conf);
video_shader_resolve_relative(wiiu->shader_preset, path);
// video_shader_resolve_parameters(conf, &shader);
for (int i = 0; i < wiiu->shader_preset->passes; i++)
slang_preprocess_parse_parameters(wiiu->shader_preset->pass[i].source.path, wiiu->shader_preset);
#if 0
video_shader_resolve_parameters(conf, wiiu->shader_preset);
#else
for (int i = 0; i < wiiu->shader_preset->passes; i++)
slang_preprocess_parse_parameters(wiiu->shader_preset->pass[i].source.path, wiiu->shader_preset);
video_shader_resolve_current_parameters(conf, wiiu->shader_preset);
#endif
config_file_free(conf);
for (int i = 0; i < wiiu->shader_preset->passes; i++)
{