Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion web/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ export class Instance implements Disposable {
// ctx release goes back into lib.
this.ctx.dispose();
this.lib.dispose();
this.deviceLostIsError = true;
// Cannot set deviceLostIsError back to true here because GPUDevice.destroy() is asynchronous.
}

/**
Expand Down Expand Up @@ -2122,6 +2122,7 @@ export class Instance implements Disposable {
this.dispose();
}
});
this.deviceLostIsError = true;

const webGPUContext = new WebGPUContext(
this.memory, device
Expand Down