From e9d08c7af751d75af16371fcac06fd1af8a60fac Mon Sep 17 00:00:00 2001 From: hwc487 Date: Mon, 23 Jul 2012 14:37:51 -0700 Subject: Bugs fixed: 1915 - Data.JSON too large. Reduced mesh size and limited precision of fp numbers 1381 - Background transparency in preview. 1740 - File Save As caused WebGL to stop animating. Crossed RDGE IDs 1954 - Texture change from material popup broke screen rendering. Set correct context on property change. --- js/helper-classes/RDGE/src/core/script/renderer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/helper-classes/RDGE/src/core/script/renderer.js') diff --git a/js/helper-classes/RDGE/src/core/script/renderer.js b/js/helper-classes/RDGE/src/core/script/renderer.js index 889cd62e..52158514 100755 --- a/js/helper-classes/RDGE/src/core/script/renderer.js +++ b/js/helper-classes/RDGE/src/core/script/renderer.js @@ -363,6 +363,8 @@ RDGE._renderer = function (canvas) { if (mips === undefined) mips = true; + //console.log( "createTexture " + url + ", unloadedCount: " + this.unloadedTextureCount + ", world " + RDGE.globals.engine.getContext().renderer._world._worldCount ); + if (texture) { texture.image = new Image(); texture.image.src = url; @@ -380,7 +382,7 @@ RDGE._renderer = function (canvas) { texture.image.onerror = function () { this.context.renderer.unloadedTextureCount--; if (texture.callback) texture.callback(texture); - //console.log( "Error loading texture: " + texture.image.src ); + console.log( "Error loading texture: " + texture.image.src ); if (this.context.renderer.unloadedTextureCount < 0) console.log("more textures loaded then created..."); }; -- cgit v1.2.3