diff options
author | Valerio Virgillito | 2012-06-25 10:53:47 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-25 10:53:47 -0700 |
commit | 287f2f31d5feff4dc4c564c5929f8fbea3273813 (patch) | |
tree | cc3a5bb67c00fcc9e1d80a6b91cff7d929cb10bb /js/helper-classes/RDGE/src/core/script | |
parent | 0f62fd5d06af6933530a151126fe054bf1b68419 (diff) | |
parent | 6df664320d6acc489ca0f0f6d99f58d5851a0890 (diff) | |
download | ninja-287f2f31d5feff4dc4c564c5929f8fbea3273813.tar.gz |
Merge pull request #330 from ericmueller/MaterialBugFixes
fixed a small startup issue with the RDGE library.
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/runtime.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/runtime.js b/js/helper-classes/RDGE/src/core/script/runtime.js index eb327d1f..274c1f8a 100755 --- a/js/helper-classes/RDGE/src/core/script/runtime.js +++ b/js/helper-classes/RDGE/src/core/script/runtime.js | |||
@@ -94,7 +94,11 @@ RDGE.RDGEStart = function (canvasOrID) { | |||
94 | 94 | ||
95 | RDGE.globals.engine.registerCanvas(canvas); | 95 | RDGE.globals.engine.registerCanvas(canvas); |
96 | 96 | ||
97 | canvas.task = new RDGE.RDGETask(canvas, true); | 97 | if (!canvas.task) |
98 | { | ||
99 | //canvas.task = new RDGE.RDGETask(canvas, true); | ||
100 | canvas.task = new RDGE.RDGETask(canvas, false); | ||
101 | } | ||
98 | 102 | ||
99 | if (!RDGE.globals.shaderMan) | 103 | if (!RDGE.globals.shaderMan) |
100 | RDGE.globals.shaderMan = new RDGE.ShaderManager(); | 104 | RDGE.globals.shaderMan = new RDGE.ShaderManager(); |