summaryrefslogtreecommitdiff
path: root/src/effects/passthrough_effect_v2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/passthrough_effect_v2.cc')
-rw-r--r--src/effects/passthrough_effect_v2.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects/passthrough_effect_v2.cc b/src/effects/passthrough_effect_v2.cc
index 5203f97..765c1f0 100644
--- a/src/effects/passthrough_effect_v2.cc
+++ b/src/effects/passthrough_effect_v2.cc
@@ -44,7 +44,9 @@ void PassthroughEffectV2::render(WGPUCommandEncoder encoder,
// Render pass
WGPURenderPassColorAttachment color_attachment = {
.view = output_view,
+#if !defined(DEMO_CROSS_COMPILE_WIN32)
.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED,
+#endif
.loadOp = WGPULoadOp_Clear,
.storeOp = WGPUStoreOp_Store,
.clearValue = {0.0, 0.0, 0.0, 1.0}