Merge pull request #56370 from Chaosus/fix_shader_instance_uniform

This commit is contained in:
Rémi Verschelde 2022-01-03 13:06:18 +01:00 committed by GitHub
commit cd38b42987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9234,7 +9234,7 @@ void RendererStorageRD::_update_global_variables() {
for (uint32_t i = 0; i < total_regions; i++) {
if (global_variables.buffer_dirty_regions[i]) {
RD::get_singleton()->buffer_update(global_variables.buffer, i * region_byte_size, region_byte_size, global_variables.buffer_values);
RD::get_singleton()->buffer_update(global_variables.buffer, i * region_byte_size, region_byte_size, &global_variables.buffer_values[i * GlobalVariables::BUFFER_DIRTY_REGION_SIZE]);
global_variables.buffer_dirty_regions[i] = false;
}