summaryrefslogtreecommitdiff
path: root/tools/seq_compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/seq_compiler.py')
-rwxr-xr-xtools/seq_compiler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/seq_compiler.py b/tools/seq_compiler.py
index fc07f84..8c92996 100755
--- a/tools/seq_compiler.py
+++ b/tools/seq_compiler.py
@@ -640,7 +640,9 @@ void RenderTimeline(WGPUSurface surface, float time, int width, int height,
// Clear source
WGPURenderPassColorAttachment clear_attach = {};
clear_attach.view = g_source_view;
+ #if !defined(DEMO_CROSS_COMPILE_WIN32)
clear_attach.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED;
+#endif
clear_attach.loadOp = WGPULoadOp_Clear;
clear_attach.storeOp = WGPUStoreOp_Store;
clear_attach.clearValue = {0.0, 0.0, 0.0, 1.0};
@@ -665,7 +667,9 @@ void RenderTimeline(WGPUSurface surface, float time, int width, int height,
blit_attach.view = surface_texture.texture
? wgpuTextureCreateView(surface_texture.texture, nullptr)
: nullptr;
+ #if !defined(DEMO_CROSS_COMPILE_WIN32)
blit_attach.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED;
+#endif
blit_attach.loadOp = WGPULoadOp_Clear;
blit_attach.storeOp = WGPUStoreOp_Store;
blit_attach.clearValue = {0.0, 0.0, 0.0, 1.0};