You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Add shader_cache_dir_valid check to _save_to_cache
(cherry picked from commit a365c070b3)
This commit is contained in:
committed by
Rémi Verschelde
parent
3797140b7d
commit
9926e7e8fa
@@ -463,6 +463,7 @@ bool ShaderRD::_load_from_cache(Version *p_version, int p_group) {
|
||||
}
|
||||
|
||||
void ShaderRD::_save_to_cache(Version *p_version, int p_group) {
|
||||
ERR_FAIL_COND(!shader_cache_dir_valid);
|
||||
String sha1 = _version_get_sha1(p_version);
|
||||
String path = shader_cache_dir.path_join(name).path_join(group_sha256[p_group]).path_join(sha1) + ".cache";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user