Merge pull request #176 from ddsol/patch-1
new Image() error: Fixed bug link
This commit is contained in:
commit
6bffbdbaaf
1 changed files with 3 additions and 1 deletions
|
@ -114,7 +114,9 @@ PIXI.BaseTexture.fromImage = function(imageUrl, crossorigin)
|
||||||
var baseTexture = PIXI.BaseTextureCache[imageUrl];
|
var baseTexture = PIXI.BaseTextureCache[imageUrl];
|
||||||
if(!baseTexture)
|
if(!baseTexture)
|
||||||
{
|
{
|
||||||
var image = new Image();
|
// new Image() breaks tex loading in some versions of Chrome.
|
||||||
|
// See https://code.google.com/p/chromium/issues/detail?id=238071
|
||||||
|
var image = document.createElement('img');
|
||||||
if (crossorigin)
|
if (crossorigin)
|
||||||
{
|
{
|
||||||
image.crossOrigin = '';
|
image.crossOrigin = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue