Skip to content

Commit

Permalink
add missing call to drawScene
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Sep 30, 2023
1 parent bb5ad83 commit 651314e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webgl/webgl-tips-screenshot-good.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@

const elem = document.querySelector('#screenshot');
elem.addEventListener('click', () => {
drawScene();
canvas.toBlob((blob) => {
saveBlob(blob, `screencapture-${canvas.width}x${canvas.height}.png`);
});
Expand Down

0 comments on commit 651314e

Please sign in to comment.