From d45c50f099fb808632fbb15ebc5d8dd35dec6cb5 Mon Sep 17 00:00:00 2001 From: Perminder Date: Thu, 12 Dec 2024 03:30:28 +0530 Subject: [PATCH] minor-fixes --- src/image/filterRenderer2D.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/image/filterRenderer2D.js b/src/image/filterRenderer2D.js index c5a732e687..1e421d449c 100644 --- a/src/image/filterRenderer2D.js +++ b/src/image/filterRenderer2D.js @@ -154,15 +154,14 @@ class FilterRenderer2D { _renderPass() { const gl = this.gl; this._shader.bindShader(); - - const pixelDensity = this.pInst._renderer.pixelDensity ? this.pInst._renderer.pixelDensity() : 1; + const pixelDensity = this.pInst.pixelDensity ? this.pInst.pixelDensity() : 1; const texelSize = [ 1 / (this.pInst.width * pixelDensity), 1 / (this.pInst.height * pixelDensity) ]; - const canvasTexture = new Texture(this._renderer, this.pInst._renderer.wrappedElt); + const canvasTexture = new Texture(this._renderer, this.pInst.wrappedElt); // Set uniforms for the shader this._shader.setUniform('tex0', canvasTexture);