From 0a70df3fb04481584a945c4e9c12d3f4ca3a07c0 Mon Sep 17 00:00:00 2001 From: iver56 Date: Fri, 6 Oct 2023 20:00:01 +0200 Subject: [PATCH] Fix missing canvas texture update on resize in FlatLand in demo project This fixes a bug where the canvas would stop animating after pressing enter to see the larger preview --- example-project/src/FlatLand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example-project/src/FlatLand.ts b/example-project/src/FlatLand.ts index e8c033d..52d33bf 100644 --- a/example-project/src/FlatLand.ts +++ b/example-project/src/FlatLand.ts @@ -17,7 +17,7 @@ export class FlatLand extends ReninNode { public resize(width: number, height: number) { this.canvas.width = width; this.canvas.height = height; - console.log(width, height); + this.texture = new CanvasTexture(this.canvas); } public render(frame: number, _renderer: WebGLRenderer, renin: Renin) {