diff --git a/js/gl.ts b/js/gl.ts index ab0a5f9..2db4cae 100644 --- a/js/gl.ts +++ b/js/gl.ts @@ -621,7 +621,9 @@ export class VideoModesGL implements VideoModes { private e: boolean ) { this._canvas = document.createElement('canvas'); - const context = this._canvas.getContext('2d'); + const context = this._canvas.getContext('2d', { + willReadFrequently: true, + }); if (!context) { throw new Error('no 2d context'); }