From fc570ac9225b0ef2895da5e299527b8953c79cb7 Mon Sep 17 00:00:00 2001 From: Kevin Leonardic Date: Wed, 6 Mar 2024 13:44:37 +0100 Subject: [PATCH] Examples: WGPU: fixed initialization of WGPURenderPassColorAttachment (#7371) --- examples/example_emscripten_wgpu/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/example_emscripten_wgpu/main.cpp b/examples/example_emscripten_wgpu/main.cpp index 910da0833..43e93a2ad 100644 --- a/examples/example_emscripten_wgpu/main.cpp +++ b/examples/example_emscripten_wgpu/main.cpp @@ -201,6 +201,7 @@ int main(int, char**) ImGui::Render(); WGPURenderPassColorAttachment color_attachments = {}; + color_attachments.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED; color_attachments.loadOp = WGPULoadOp_Clear; color_attachments.storeOp = WGPUStoreOp_Store; color_attachments.clearValue = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w };