|
@@ -983,6 +983,7 @@ function Renderer(container) { |
|
|
var self = this; |
|
|
var self = this; |
|
|
this.texture = this.callback = null; |
|
|
this.texture = this.callback = null; |
|
|
this.image = new Image(); |
|
|
this.image = new Image(); |
|
|
|
|
|
this.image.crossOrigin = 'anonymous'; |
|
|
this.image.addEventListener('load', function() { |
|
|
this.image.addEventListener('load', function() { |
|
|
processLoadedTexture(self.image, self.texture); |
|
|
processLoadedTexture(self.image, self.texture); |
|
|
self.callback(self.texture); |
|
|
self.callback(self.texture); |
|
|