소스 검색

Fix crash when resizing

Popov72 4 년 전
부모
커밋
c43cc554cf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Engines/webgpuEngine.ts

+ 1 - 1
src/Engines/webgpuEngine.ts

@@ -386,7 +386,7 @@ export class WebGPUEngine extends Engine {
         }
         else {
             this._mainColorAttachments = [{
-                attachment: this._swapChain.getCurrentTexture().createView(),
+                attachment: undefined as any,
                 loadValue: new Color4(0, 0, 0, 1),
                 storeOp: WebGPUConstants.StoreOp.Store
             }];