diff options
Diffstat (limited to 'src/gpu/gpu.h')
| -rw-r--r-- | src/gpu/gpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gpu.h b/src/gpu/gpu.h index 5e928b2..de6c5ba 100644 --- a/src/gpu/gpu.h +++ b/src/gpu/gpu.h @@ -66,7 +66,9 @@ inline void gpu_init_color_attachment(WGPURenderPassColorAttachment& attachment, attachment.loadOp = WGPULoadOp_Clear; attachment.storeOp = WGPUStoreOp_Store; attachment.clearValue = {0.0f, 0.0f, 0.0f, 1.0f}; +#if !defined(DEMO_CROSS_COMPILE_WIN32) attachment.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED; +#endif } // Texture creation helper |
