Skip to content

Commit 651314e

Browse files
committed
add missing call to drawScene
1 parent bb5ad83 commit 651314e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webgl/webgl-tips-screenshot-good.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216

217217
const elem = document.querySelector('#screenshot');
218218
elem.addEventListener('click', () => {
219+
drawScene();
219220
canvas.toBlob((blob) => {
220221
saveBlob(blob, `screencapture-${canvas.width}x${canvas.height}.png`);
221222
});

0 commit comments

Comments
 (0)