Skip to content

Commit

Permalink
webgl: Canvas resizing minimal back-compatibility fix (#2277)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer authored Oct 11, 2024
1 parent 1c120a2 commit 73c3939
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/webgl/src/adapter/webgl-canvas-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 73c3939

Please sign in to comment.