From a11e5ca931ff84aeaa9996e21c636e0143265b0e Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Thu, 24 Nov 2016 10:57:21 +0100 Subject: [PATCH] fix texture loading problems --- src/game-lib-scene.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game-lib-scene.js b/src/game-lib-scene.js index c4492dd..b3a2a6f 100644 --- a/src/game-lib-scene.js +++ b/src/game-lib-scene.js @@ -379,7 +379,7 @@ GameLib.D3.Scene.LoadScene = function( for (var map in gameLibTextureMap) { - if (gameLibTextureMap.hasOwnProperty(map) && apiMaps[map] && apiMaps[map].texture) { + if (gameLibTextureMap.hasOwnProperty(map) && apiMaps[map] && apiMaps[map].texture && apiMaps[map].texture.imagePath) { var apiTexture = apiMaps[map].texture; @@ -388,7 +388,7 @@ GameLib.D3.Scene.LoadScene = function( apiTexture.id, map, apiTexture.name, - uploadUrl + '/' + apiTexture.imagePath, + apiTexture.imagePath, apiTexture.wrapS, apiTexture.wrapT, new GameLib.D3.Vector2(