Procházet zdrojové kódy

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

sunag před 1 rokem
rodič
revize
1eaa18e3ee
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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;