mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 15:50:45 +00:00
fix oob write when calling MultiMesh::set_instance_transform
This commit is contained in:
parent
282c8dda98
commit
2842c6a88c
@ -2471,7 +2471,7 @@ void RasterizerStorageRD::_multimesh_mark_dirty(MultiMesh *multimesh, int p_inde
|
|||||||
ERR_FAIL_UNSIGNED_INDEX(region_index, data_cache_dirty_region_count); //bug
|
ERR_FAIL_UNSIGNED_INDEX(region_index, data_cache_dirty_region_count); //bug
|
||||||
#endif
|
#endif
|
||||||
if (!multimesh->data_cache_dirty_regions[region_index]) {
|
if (!multimesh->data_cache_dirty_regions[region_index]) {
|
||||||
multimesh->data_cache_dirty_regions[p_index] = true;
|
multimesh->data_cache_dirty_regions[region_index] = true;
|
||||||
multimesh->data_cache_used_dirty_regions++;
|
multimesh->data_cache_used_dirty_regions++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user