From 6e95732fb1ea14ccdd921ecd81cffe0c0bf3f4b8 Mon Sep 17 00:00:00 2001 From: ajuvercr Date: Sat, 21 Sep 2019 11:31:28 +0200 Subject: [PATCH] Better pause scrolling --- frontend/www/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/www/index.ts b/frontend/www/index.ts index 2a06529..6e3a03b 100644 --- a/frontend/www/index.ts +++ b/frontend/www/index.ts @@ -175,6 +175,9 @@ class GameInstance { if (!this.playing) { this.last_time = time; + + this.shader.uniform(GL, "u_viewbox", new Uniform4f(this.resizer.get_viewbox())); + this.renderer.render(GL); return; } if (time > this.last_time + ms_per_frame) {