From 30a6873a44a0d2d2c833d9edfa247f16a71657e3 Mon Sep 17 00:00:00 2001 From: Basil Fierz Date: Thu, 7 Oct 2021 14:58:09 +0200 Subject: [PATCH] Backends: WebGPU: Fix missing initialization of local variable (#4634) --- backends/imgui_impl_wgpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_wgpu.cpp b/backends/imgui_impl_wgpu.cpp index 20b6bb221..2f621ed8f 100644 --- a/backends/imgui_impl_wgpu.cpp +++ b/backends/imgui_impl_wgpu.cpp @@ -270,7 +270,7 @@ static WGPUProgrammableStageDescriptor ImGui_ImplWGPU_CreateShaderModule(uint32_ spirv_desc.codeSize = binary_data_size; spirv_desc.code = binary_data; - WGPUShaderModuleDescriptor desc; + WGPUShaderModuleDescriptor desc = {}; desc.nextInChain = reinterpret_cast(&spirv_desc); WGPUProgrammableStageDescriptor stage_desc = {};