Skip to content

Commit

Permalink
Fix problem with commands that return strings
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Jun 7, 2022
1 parent 8b64105 commit 87b1dfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webgpu_recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 " : "";

Expand Down

0 comments on commit 87b1dfb

Please sign in to comment.