From 73c393979c197c3c544c82d2f0896a049fac0251 Mon Sep 17 00:00:00 2001 From: felixpalmer Date: Fri, 11 Oct 2024 11:32:23 +0200 Subject: [PATCH] webgl: Canvas resizing minimal back-compatibility fix (#2277) --- modules/webgl/src/adapter/webgl-canvas-context.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/webgl/src/adapter/webgl-canvas-context.ts b/modules/webgl/src/adapter/webgl-canvas-context.ts index f79b46fa86..772a70e69d 100644 --- a/modules/webgl/src/adapter/webgl-canvas-context.ts +++ b/modules/webgl/src/adapter/webgl-canvas-context.ts @@ -53,10 +53,6 @@ export class WebGLCanvasContext extends CanvasContext { resize(options?: {width?: number; height?: number; useDevicePixels?: boolean | number}): void { if (!this.device.gl) return; - if (this.props.autoResize) { - return; - } - // Resize browser context. TODO - this likely needs to be rewritten if (this.canvas) { const devicePixelRatio = this.getDevicePixelRatio(options?.useDevicePixels);