Przeglądaj źródła

Cleanup from https://github.com/mrdoob/three.js/pull/27233

sunag 1 rok temu
rodzic
commit
1eaa18e3ee
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      examples/jsm/renderers/webgpu/WebGPUBackend.js

+ 2 - 2
examples/jsm/renderers/webgpu/WebGPUBackend.js

@@ -620,7 +620,7 @@ class WebGPUBackend extends Backend {
 				depthStencilAttachment.depthClearValue = renderer.getClearDepth();
 				depthStencilAttachment.depthStoreOp = GPUStoreOp.Store;
 
-			} else if ( supportsDepth ) {
+			} else {
 
 				depthStencilAttachment.depthLoadOp = GPULoadOp.Load;
 				depthStencilAttachment.depthStoreOp = GPUStoreOp.Store;
@@ -635,7 +635,7 @@ class WebGPUBackend extends Backend {
 				depthStencilAttachment.stencilClearValue = renderer.getClearStencil();
 				depthStencilAttachment.stencilStoreOp = GPUStoreOp.Store;
 
-			} else if ( supportsStencil ) {
+			} else {
 
 				depthStencilAttachment.stencilLoadOp = GPULoadOp.Load;
 				depthStencilAttachment.stencilStoreOp = GPUStoreOp.Store;