소스 검색

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

sunag 1 년 전
부모
커밋
1eaa18e3ee
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;