diff options
author | hwc487 | 2012-07-23 14:37:51 -0700 |
---|---|---|
committer | hwc487 | 2012-07-23 14:37:51 -0700 |
commit | e9d08c7af751d75af16371fcac06fd1af8a60fac (patch) | |
tree | e0499f795bf5a5f3db30b61e70a5852ff0799aed /js/helper-classes/RDGE/src/core/script/renderer.js | |
parent | 2b05717e49bafc4b401441d9a55153b9e4ae7e43 (diff) | |
download | ninja-e9d08c7af751d75af16371fcac06fd1af8a60fac.tar.gz |
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.
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/renderer.js')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/renderer.js | 4 |
1 files changed, 3 insertions, 1 deletions
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) { | |||
363 | if (mips === undefined) | 363 | if (mips === undefined) |
364 | mips = true; | 364 | mips = true; |
365 | 365 | ||
366 | //console.log( "createTexture " + url + ", unloadedCount: " + this.unloadedTextureCount + ", world " + RDGE.globals.engine.getContext().renderer._world._worldCount ); | ||
367 | |||
366 | if (texture) { | 368 | if (texture) { |
367 | texture.image = new Image(); | 369 | texture.image = new Image(); |
368 | texture.image.src = url; | 370 | texture.image.src = url; |
@@ -380,7 +382,7 @@ RDGE._renderer = function (canvas) { | |||
380 | texture.image.onerror = function () { | 382 | texture.image.onerror = function () { |
381 | this.context.renderer.unloadedTextureCount--; | 383 | this.context.renderer.unloadedTextureCount--; |
382 | if (texture.callback) texture.callback(texture); | 384 | if (texture.callback) texture.callback(texture); |
383 | //console.log( "Error loading texture: " + texture.image.src ); | 385 | console.log( "Error loading texture: " + texture.image.src ); |
384 | if (this.context.renderer.unloadedTextureCount < 0) | 386 | if (this.context.renderer.unloadedTextureCount < 0) |
385 | console.log("more textures loaded then created..."); | 387 | console.log("more textures loaded then created..."); |
386 | }; | 388 | }; |