Explorar o código

WebGPUBackend: Fix manual `clear()` regression. (#31388)

Michael Herzog hai 10 meses
pai
achega
ea7b0ce251
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/renderers/webgpu/WebGPUBackend.js

+ 2 - 2
src/renderers/webgpu/WebGPUBackend.js

@@ -1236,7 +1236,7 @@ class WebGPUBackend extends Backend {
 
 		}
 
-		if ( supportsDepth && depthStencilAttachment && depthStencilAttachment.depthLoadOp === undefined ) {
+		if ( supportsDepth && depthStencilAttachment ) {
 
 			if ( depth ) {
 
@@ -1255,7 +1255,7 @@ class WebGPUBackend extends Backend {
 
 		//
 
-		if ( supportsStencil && depthStencilAttachment && depthStencilAttachment.stencilLoadOp === undefined ) {
+		if ( supportsStencil && depthStencilAttachment ) {
 
 			if ( stencil ) {
 

粤ICP备19079148号