Explorar o código

Fix crash when resizing

Popov72 %!s(int64=4) %!d(string=hai) anos
pai
achega
c43cc554cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
             }];