diff options
author | Nivesh Rajbhandari | 2012-02-22 11:00:20 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-22 11:00:20 -0800 |
commit | 96a0a8c916533eb5625816192ed38488f639326d (patch) | |
tree | a6283ee8c546419c3e79aa71c8e39c61d6dc34ed /js/helper-classes/RDGE/src/core/script/runtime.js | |
parent | d2f4d5e5f6742d53b6324d585a700566f73c992a (diff) | |
download | ninja-96a0a8c916533eb5625816192ed38488f639326d.tar.gz |
Integrating canvas-2d drawing and WebGL fixes, including adding back WebGL materials.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/runtime.js')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/runtime.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/runtime.js b/js/helper-classes/RDGE/src/core/script/runtime.js index 18b9b223..3d824faf 100755 --- a/js/helper-classes/RDGE/src/core/script/runtime.js +++ b/js/helper-classes/RDGE/src/core/script/runtime.js | |||
@@ -206,11 +206,15 @@ RDGETask = (function() { | |||
206 | self.lastTime = self.currTime; | 206 | self.lastTime = self.currTime; |
207 | } | 207 | } |
208 | 208 | ||
209 | this.start = function() { | 209 | this.start = function() |
210 | this.running = true; | 210 | { |
211 | this.currTime = new Date().getTime(); | 211 | if (!this.running) |
212 | this.lastTime = this.currTime; | 212 | { |
213 | tasks[this.id](); | 213 | this.running = true; |
214 | this.currTime = new Date().getTime(); | ||
215 | this.lastTime = this.currTime; | ||
216 | tasks[this.id](); | ||
217 | } | ||
214 | } | 218 | } |
215 | 219 | ||
216 | this.stop = function() { | 220 | this.stop = function() { |