Browse Source

Add CORS support to multires.

tags/2.0
Matthew Petroff 10 years ago
parent
commit
bb79ede417
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/js/libpannellum.js

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

@@ -566,6 +566,7 @@ function Renderer(container, image, imageType) {
if (!node.texture) {
node.texture = gl.createTexture();
node.image = new Image();
node.image.crossOrigin = 'anonymous';
var self = this;
node.image.onload = function() {
self.processLoadedTexture(node.image, node.texture);


Loading…
Cancel
Save