瀏覽代碼

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
             }];