diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-15 13:18:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 13:18:27 +0100 |
commit | 51bbcbdec2f971ed0113992b34335ef3c9873e79 (patch) | |
tree | 2a6c142089cb1c766f3b18107d70e8a418ce6248 /servers/rendering/renderer_rd/renderer_storage_rd.cpp | |
parent | d0fee76717abde7ce7d922e488a03782669b2450 (diff) | |
parent | 39d429e49705fe153a20dfb27421f1246237a683 (diff) |
Merge pull request #45263 from KoBeWi/😕
Diffstat (limited to 'servers/rendering/renderer_rd/renderer_storage_rd.cpp')
-rw-r--r-- | servers/rendering/renderer_rd/renderer_storage_rd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/servers/rendering/renderer_rd/renderer_storage_rd.cpp b/servers/rendering/renderer_rd/renderer_storage_rd.cpp index e4ddc1b41f..f00931cf47 100644 --- a/servers/rendering/renderer_rd/renderer_storage_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_storage_rd.cpp @@ -9510,8 +9510,7 @@ RendererStorageRD::RendererStorageRD() { static_assert(sizeof(GlobalVariables::Value) == 16); - global_variables.buffer_size = GLOBAL_GET("rendering/limits/global_shader_variables/buffer_size"); - global_variables.buffer_size = MAX(4096, global_variables.buffer_size); + global_variables.buffer_size = MAX(4096, (int)GLOBAL_GET("rendering/limits/global_shader_variables/buffer_size")); global_variables.buffer_values = memnew_arr(GlobalVariables::Value, global_variables.buffer_size); memset(global_variables.buffer_values, 0, sizeof(GlobalVariables::Value) * global_variables.buffer_size); global_variables.buffer_usage = memnew_arr(GlobalVariables::ValueUsage, global_variables.buffer_size); |