Skip to content

Commit cf9822c

Browse files
committed
WebGPURenderPipelines: Clean up.
1 parent a50700b commit cf9822c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/jsm/renderers/webgpu/WebGPURenderPipelines.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ class WebGPURenderPipelines {
145145

146146
const primitiveTopology = this._getPrimitiveTopology( object );
147147
const rasterizationState = this._getRasterizationStateDescriptor( object );
148+
const depthCompare = this._getDepthCompare( material );
148149

149150
pipeline = device.createRenderPipeline( {
150151
layout: layout,
@@ -158,7 +159,7 @@ class WebGPURenderPipelines {
158159
} ],
159160
depthStencilState: {
160161
depthWriteEnabled: material.depthWrite,
161-
depthCompare: this._getDepthCompare( material ),
162+
depthCompare: depthCompare,
162163
format: GPUTextureFormat.Depth24PlusStencil8,
163164
},
164165
vertexState: {

0 commit comments

Comments
 (0)