diff --git a/game-lib.js b/game-lib.js index 0b6569f..e7ffdbd 100644 --- a/game-lib.js +++ b/game-lib.js @@ -1917,6 +1917,8 @@ GameLib.D3.prototype.loadMap = function(gameLibTexture, threeMaterial, threeMate if (imagePath) { + this.textureLoader.crossOrigin = ''; + this.textureLoader.load( imagePath, function(texture) { @@ -2367,7 +2369,7 @@ GameLib.D3.prototype.loadSceneFromApi = function(sceneName, onLoaded) { var xhr = new XMLHttpRequest(); xhr.open( 'GET', - this.apiUrl + '/scene/pong%20latest' + this.apiUrl + '/scene/' + sceneName ); xhr.onreadystatechange = function(xhr, gameLibD3) {