mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Prevent _allocate_placeholders
crash if p_version->variants
is null
This commit is contained in:
parent
8c25a98fdf
commit
5f85a042b6
@ -480,6 +480,7 @@ void ShaderRD::_save_to_cache(Version *p_version, int p_group) {
|
||||
}
|
||||
|
||||
void ShaderRD::_allocate_placeholders(Version *p_version, int p_group) {
|
||||
ERR_FAIL_NULL(p_version->variants);
|
||||
for (uint32_t i = 0; i < group_to_variant_map[p_group].size(); i++) {
|
||||
int variant_id = group_to_variant_map[p_group][i];
|
||||
RID shader = RD::get_singleton()->shader_create_placeholder();
|
||||
|
Loading…
Reference in New Issue
Block a user