Skip to content

Commit

Permalink
fix(*): getBufferSubDataAsync (mdn#32451)
Browse files Browse the repository at this point in the history
`dest` is not defined.
getBufferSubDataAsync should return dstBuffer
  • Loading branch information
stepancar authored Mar 1, 2024
1 parent 2528ef1 commit d77e0bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ async function getBufferSubDataAsync(
gl.getBufferSubData(target, srcByteOffset, dstBuffer, dstOffset, length);
gl.bindBuffer(target, null);

return dest;
return dstBuffer;
}

async function readPixelsAsync(gl, x, y, w, h, format, type, dest) {
Expand Down

0 comments on commit d77e0bb

Please sign in to comment.