Disable autoResize flag. The size a DynamicTexture is created at is the size it should remain forever.

This commit is contained in:
Richard Davey 2024-08-06 18:58:31 +01:00
parent c81c6cecc8
commit 50196f4958

View file

@ -213,7 +213,7 @@ var DynamicTexture = new Class({
* @type {Phaser.Renderer.WebGL.RenderTarget}
* @since 3.60.0
*/
this.renderTarget = (!isCanvas) ? new RenderTarget(renderer, width, height, 1, 0, false, true, true, false) : null;
this.renderTarget = (!isCanvas) ? new RenderTarget(renderer, width, height, 1, 0, false, false, true, false) : null;
/**
* A reference to the WebGL Single Pipeline.