Update ImageRenderer.ts

This commit is contained in:
Daniel Imms
2026-03-12 09:47:51 +09:00
committed by GitHub
parent 3a59c8ec2b
commit 5e9b2cbc14
+1 -2
View File
@@ -358,8 +358,7 @@ export class ImageRenderer extends Disposable implements IDisposable {
canvas.style.zIndex = '0';
screenElement.appendChild(canvas);
}
// Keep rendering synchronized with resize to avoid blank-frame jitter on some platforms.
const ctx = canvas.getContext('2d', { alpha: true, desynchronized: false });
const ctx = canvas.getContext('2d', { alpha: true });
if (!ctx) {
canvas.remove();
return;