summaryrefslogtreecommitdiff
path: root/src/gpu/pipeline_builder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/pipeline_builder.cc')
-rw-r--r--src/gpu/pipeline_builder.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/pipeline_builder.cc b/src/gpu/pipeline_builder.cc
index ea4a272..2d9ec07 100644
--- a/src/gpu/pipeline_builder.cc
+++ b/src/gpu/pipeline_builder.cc
@@ -54,6 +54,9 @@ RenderPipelineBuilder::depth(WGPUTextureFormat depth_fmt) {
depth_.format = depth_fmt;
depth_.depthWriteEnabled = WGPUOptionalBool_True;
depth_.depthCompare = WGPUCompareFunction_Less;
+ // Vulkan backend panics on WGPUCompareFunction_Undefined (zero) in stencil
+ depth_.stencilFront.compare = WGPUCompareFunction_Always;
+ depth_.stencilBack.compare = WGPUCompareFunction_Always;
return *this;
}