Mad cross origin on by default to fix ie11 issue and make life generally easier
This commit is contained in:
parent
61ad79999b
commit
d0109051f9
1 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,8 @@ PIXI.BaseTexture.prototype.updateSourceImage = function(newSrc)
|
||||||
PIXI.BaseTexture.fromImage = function(imageUrl, crossorigin, scaleMode)
|
PIXI.BaseTexture.fromImage = function(imageUrl, crossorigin, scaleMode)
|
||||||
{
|
{
|
||||||
var baseTexture = PIXI.BaseTextureCache[imageUrl];
|
var baseTexture = PIXI.BaseTextureCache[imageUrl];
|
||||||
|
crossorigin = !crossorigin;
|
||||||
|
|
||||||
if(!baseTexture)
|
if(!baseTexture)
|
||||||
{
|
{
|
||||||
// new Image() breaks tex loading in some versions of Chrome.
|
// new Image() breaks tex loading in some versions of Chrome.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue