mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Don't dump frame_count_mod unless needed.
This commit is contained in:
parent
211e17250c
commit
eeddfea425
@ -666,6 +666,13 @@ static bool load_preset(const char *path)
|
||||
|
||||
config_file_free(conf);
|
||||
|
||||
#if 1
|
||||
config_file_t *save_test = config_file_new(NULL);
|
||||
gfx_shader_write_conf_cgp(conf, cg_shader);
|
||||
config_file_write(save_test, "/tmp/load.cgp");
|
||||
config_file_free(save_test);
|
||||
#endif
|
||||
|
||||
if (cg_shader->passes > RARCH_CG_MAX_SHADERS - 3)
|
||||
{
|
||||
RARCH_WARN("Too many shaders ... Capping shader amount to %d.\n", RARCH_CG_MAX_SHADERS - 3);
|
||||
|
@ -455,8 +455,11 @@ void gfx_shader_write_conf_cgp(config_file_t *conf, const struct gfx_shader *sha
|
||||
config_set_bool(conf, key, pass->filter == RARCH_FILTER_LINEAR);
|
||||
}
|
||||
|
||||
print_buf(key, "frame_count_mod%u", i);
|
||||
config_set_int(conf, key, pass->frame_count_mod);
|
||||
if (pass->frame_count_mod)
|
||||
{
|
||||
print_buf(key, "frame_count_mod%u", i);
|
||||
config_set_int(conf, key, pass->frame_count_mod);
|
||||
}
|
||||
|
||||
shader_write_fbo(conf, &pass->fbo, i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user