We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423e0e1 commit b3073eeCopy full SHA for b3073ee
src/engine.ts
@@ -476,6 +476,19 @@ export class Engine<T> {
476
return;
477
}
478
479
+ if (
480
+ // @ts-ignore
481
+ gl.canvas.width != gl.canvas.clientWidth ||
482
483
+ gl.canvas.height != gl.canvas.clientHeight
484
+ ) {
485
486
+ gl.canvas.width = gl.canvas.clientWidth;
487
488
+ gl.canvas.height = gl.canvas.clientHeight;
489
+ gl.viewport(0, 0, gl.canvas.width, gl.canvas.height);
490
+ }
491
+
492
const REPEAT_MAP: Record<repeat_mode, number> = {
493
repeat: gl.REPEAT,
494
clamp_to_edge: gl.CLAMP_TO_EDGE,
0 commit comments