mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
DynamicTexture
will now automatically call setSize(width, height)
for both WebGL and Canvas. Previously it only did it for WebGL. This fixes an issue where DynamicTextures in Canvas mode would have a width and height of -1. Fix #6682
This commit is contained in:
parent
4831095538
commit
4ea4e55e0f
1 changed files with 1 additions and 4 deletions
|
@ -226,10 +226,7 @@ var DynamicTexture = new Class({
|
|||
*/
|
||||
this.pipeline = (!isCanvas) ? renderer.pipelines.get(PIPELINES.SINGLE_PIPELINE) : null;
|
||||
|
||||
if (!isCanvas)
|
||||
{
|
||||
this.setSize(width, height);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue