From 87b1dfbd8f07d064dac7ed2b3febc6a46891724d Mon Sep 17 00:00:00 2001 From: Brendan Duncan Date: Tue, 7 Jun 2022 16:00:58 -0700 Subject: [PATCH] Fix problem with commands that return strings --- webgpu_recorder.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webgpu_recorder.js b/webgpu_recorder.js index d0c641a..a0637d3 100644 --- a/webgpu_recorder.js +++ b/webgpu_recorder.js @@ -595,7 +595,12 @@ window.addEventListener('load', main); _recordCommand(async, object, method, result, args) { if (this._isRecording) { if (result) + { + if (typeof(result) === "string") + return; + this._registerObject(result); + } async = async ? "await " : "";