summaryrefslogtreecommitdiff
path: root/src/effects/gaussian_blur_effect_v2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/gaussian_blur_effect_v2.cc')
-rw-r--r--src/effects/gaussian_blur_effect_v2.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/effects/gaussian_blur_effect_v2.cc b/src/effects/gaussian_blur_effect_v2.cc
index f87de8b..0c90fa2 100644
--- a/src/effects/gaussian_blur_effect_v2.cc
+++ b/src/effects/gaussian_blur_effect_v2.cc
@@ -64,6 +64,9 @@ void GaussianBlurEffectV2::render(WGPUCommandEncoder encoder,
// Render pass
WGPURenderPassColorAttachment color_attachment = {};
color_attachment.view = output_view;
+#if !defined(DEMO_CROSS_COMPILE_WIN32)
+ color_attachment.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED;
+#endif
color_attachment.loadOp = WGPULoadOp_Clear;
color_attachment.storeOp = WGPUStoreOp_Store;
color_attachment.clearValue = {0.0, 0.0, 0.0, 1.0};