Browse Source

Fix multires CORS regression (fixes #191, regression introduced in 53c6cf85f7).

pull/234/head
Matthew Petroff 8 years ago
parent
commit
f057406d46
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/js/libpannellum.js

+ 1
- 0
src/js/libpannellum.js View File

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


Loading…
Cancel
Save