You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Fix 'Attempted to remove invalid ID' errors
This commit is contained in:
@@ -146,7 +146,9 @@ void ShaderRD::_clear_version(Version *p_version) {
|
||||
//clear versions if they exist
|
||||
if (p_version->variants) {
|
||||
for (int i = 0; i < variant_defines.size(); i++) {
|
||||
RD::get_singleton()->free(p_version->variants[i]);
|
||||
if (variants_enabled[i]) {
|
||||
RD::get_singleton()->free(p_version->variants[i]);
|
||||
}
|
||||
}
|
||||
|
||||
memdelete_arr(p_version->variants);
|
||||
|
||||
Reference in New Issue
Block a user