Update ImageEffector.ts
This commit is contained in:
parent
8d2bc9b84f
commit
8aee50a7dd
|
|
@ -392,6 +392,8 @@ export class ImageEffector<IEX extends ReadonlyArray<ImageEffectorFx<any, any, a
|
||||||
}
|
}
|
||||||
|
|
||||||
public changeResolution(width: number, height: number) {
|
public changeResolution(width: number, height: number) {
|
||||||
|
if (this.renderWidth === width && this.renderHeight === height) return;
|
||||||
|
|
||||||
this.renderWidth = width;
|
this.renderWidth = width;
|
||||||
this.renderHeight = height;
|
this.renderHeight = height;
|
||||||
if (this.canvas) {
|
if (this.canvas) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue