Skip to content

Commit

Permalink
Merge pull request #80034 from darksylinc/matias-fixes
Browse files Browse the repository at this point in the history
Fix uninitialized variable ending up sent to Vulkan
  • Loading branch information
clayjohn authored Jul 30, 2023
2 parents 75f9c97 + 4722264 commit 262d1ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/vulkan/rendering_device_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4687,7 +4687,7 @@ Vector<uint8_t> RenderingDeviceVulkan::shader_compile_binary_from_spirv(const Ve
"Number of uniform sets is larger than what is supported by the hardware (" + itos(limits.maxBoundDescriptorSets) + ").");

// Collect reflection data into binary data.
RenderingDeviceVulkanShaderBinaryData binary_data;
RenderingDeviceVulkanShaderBinaryData binary_data{};
Vector<Vector<RenderingDeviceVulkanShaderBinaryDataBinding>> uniform_info; // Set bindings.
Vector<RenderingDeviceVulkanShaderBinarySpecializationConstant> specialization_constants;
{
Expand Down
2 changes: 1 addition & 1 deletion servers/rendering/renderer_rd/shader_rd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ String ShaderRD::_version_get_sha1(Version *p_version) const {
}

static const char *shader_file_header = "GDSC";
static const uint32_t cache_file_version = 2;
static const uint32_t cache_file_version = 3;

bool ShaderRD::_load_from_cache(Version *p_version) {
String sha1 = _version_get_sha1(p_version);
Expand Down

0 comments on commit 262d1ea

Please sign in to comment.