mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
TileSprites will now throw a console warning if you try to use a RenderTexture or GLTexture as their frame source. Fix #4719
This commit is contained in:
parent
d14264a829
commit
5b6d9895be
2 changed files with 10 additions and 0 deletions
|
@ -53,6 +53,7 @@ In combination these updates fix issues #4732 and #4672. My thanks to @BenjaminD
|
|||
* `WebGLPipeline.addAttribute` will now automatically update the vertextComponentCount for you, without you having to do it manually any more (thanks @yhwh)
|
||||
* `MultiFile` has three new internal properties: `baseURL`, `path` and `prefix` which allow them to retain the state of the loader at the time of creation, to be passed on to all child-files. Fix #4679.
|
||||
* `LoaderPlugin` and `MultiFile` have a new private property `multiKeyIndex` which multi-files use and increment when batching sub-file loads.
|
||||
* TileSprites will now throw a console warning if you try to use a RenderTexture or GLTexture as their frame source. Fix #4719 (thanks @pavel-shirobok)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
|
|
|
@ -406,6 +406,15 @@ var TileSprite = new Class({
|
|||
|
||||
var frame = this.displayFrame;
|
||||
|
||||
if (frame.source.isRenderTexture || frame.source.isGLTexture)
|
||||
{
|
||||
console.warn('TileSprites can only use Image or Canvas based textures');
|
||||
|
||||
this.dirty = false;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var ctx = this.fillContext;
|
||||
var canvas = this.fillCanvas;
|
||||
|
||||
|
|
Loading…
Reference in a new issue