Răsfoiți Sursa

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

Michael Herzog 9 luni în urmă
părinte
comite
ea7b0ce251
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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 ) {
 			if ( depth ) {
 
 
@@ -1255,7 +1255,7 @@ class WebGPUBackend extends Backend {
 
 
 		//
 		//
 
 
-		if ( supportsStencil && depthStencilAttachment && depthStencilAttachment.stencilLoadOp === undefined ) {
+		if ( supportsStencil && depthStencilAttachment ) {
 
 
 			if ( stencil ) {
 			if ( stencil ) {
 
 

粤ICP备19079148号