FARC: removed optional arguments

This commit is contained in:
korenkonder
2024-06-08 20:36:54 +03:00
parent 65507e9a71
commit b4b2658a29
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ HOOK(void, FASTCALL, shader_load_all_shaders, 0x00000001405E4FC0) {
HGLOBAL data = LoadResource((HMODULE)dll_handle, res);
farc f;
f.read(data, size);
f.read(data, size, true);
shaders_ft.load(&f, false, "ft", shader_ft_table, shader_ft_table_size,
shader_ft_bind_func_table, shader_ft_bind_func_table_size,
shader_ft_get_index_by_name);
+1 -1
View File
@@ -736,7 +736,7 @@ void shader_set_data::load(farc* f, bool ignore_cache,
free_def(temp_frag);
if (!ignore_cache && shader_cache_changed)
shader_cache_farc.write(temp_buf, FARC_FArC, FARC_NONE, false);
shader_cache_farc.write(temp_buf, FARC_FArC, FARC_NONE, true, false);
this->get_index_by_name_func = get_index_by_name;
}