Просмотр исходного кода

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

Michael Herzog 9 месяцев назад
Родитель
Сommit
ea7b0ce251
1 измененных файлов с 2 добавлено и 2 удалено
  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号