You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix MSVC warnings C4701 and C4703: Potentially uninitialized variable used
This commit is contained in:
@@ -4828,7 +4828,7 @@ Vector<uint8_t> RenderingDeviceVulkan::shader_compile_binary_from_spirv(const Ve
|
||||
for (uint32_t j = 0; j < binding_count; j++) {
|
||||
const SpvReflectDescriptorBinding &binding = *bindings[j];
|
||||
|
||||
RenderingDeviceVulkanShaderBinaryDataBinding info;
|
||||
RenderingDeviceVulkanShaderBinaryDataBinding info{};
|
||||
|
||||
bool need_array_dimensions = false;
|
||||
bool need_block_size = false;
|
||||
@@ -4979,7 +4979,7 @@ Vector<uint8_t> RenderingDeviceVulkan::shader_compile_binary_from_spirv(const Ve
|
||||
|
||||
for (uint32_t j = 0; j < sc_count; j++) {
|
||||
int32_t existing = -1;
|
||||
RenderingDeviceVulkanShaderBinarySpecializationConstant sconst;
|
||||
RenderingDeviceVulkanShaderBinarySpecializationConstant sconst{};
|
||||
SpvReflectSpecializationConstant *spc = spec_constants[j];
|
||||
|
||||
sconst.constant_id = spc->constant_id;
|
||||
|
||||
Reference in New Issue
Block a user