Skip to content

Commit 6a40d6f

Browse files
authored
Merge pull request phaserjs#4744 from yhwh/bug/RenderTextureResize
RenderTexture would not update texture size on resize
2 parents 5b10c07 + 18060a8 commit 6a40d6f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/gameobjects/rendertexture/RenderTexture.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ var RenderTexture = new Class({
349349

350350
this.canvas.width = width;
351351
this.canvas.height = height;
352-
352+
353+
this.texture.width = width;
354+
this.texture.height = height;
355+
353356
if (this.gl)
354357
{
355358
var gl = this.gl;

0 commit comments

Comments
 (0)