Merge pull request #56370 from Chaosus/fix_shader_instance_uniform
This commit is contained in:
commit
cd38b42987
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue