Update ImageRenderer.ts
This commit is contained in:
@@ -358,8 +358,7 @@ export class ImageRenderer extends Disposable implements IDisposable {
|
|||||||
canvas.style.zIndex = '0';
|
canvas.style.zIndex = '0';
|
||||||
screenElement.appendChild(canvas);
|
screenElement.appendChild(canvas);
|
||||||
}
|
}
|
||||||
// Keep rendering synchronized with resize to avoid blank-frame jitter on some platforms.
|
const ctx = canvas.getContext('2d', { alpha: true });
|
||||||
const ctx = canvas.getContext('2d', { alpha: true, desynchronized: false });
|
|
||||||
if (!ctx) {
|
if (!ctx) {
|
||||||
canvas.remove();
|
canvas.remove();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user