Browse Source

Backends: WebGPU: Fix missing initialization of local variable (#4634)

Basil Fierz 3 years ago
parent
commit
30a6873a44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backends/imgui_impl_wgpu.cpp

+ 1 - 1
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<WGPUChainedStruct*>(&spirv_desc);
 
     WGPUProgrammableStageDescriptor stage_desc = {};