summaryrefslogtreecommitdiff
path: root/src/effects/rotating_cube_effect_v2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/rotating_cube_effect_v2.cc')
-rw-r--r--src/effects/rotating_cube_effect_v2.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects/rotating_cube_effect_v2.cc b/src/effects/rotating_cube_effect_v2.cc
index 02ed2d3..1a28cad 100644
--- a/src/effects/rotating_cube_effect_v2.cc
+++ b/src/effects/rotating_cube_effect_v2.cc
@@ -159,7 +159,9 @@ void RotatingCubeEffectV2::render(WGPUCommandEncoder encoder,
// Render pass with depth
WGPURenderPassColorAttachment color_attachment = {
.view = color_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}};