diff options
author | hwc487 | 2012-03-23 13:46:40 -0700 |
---|---|---|
committer | hwc487 | 2012-03-23 13:46:40 -0700 |
commit | 8fa51b9d8c37896dfd13a5b238cf990fcbdb0c96 (patch) | |
tree | 6ff6213ca640084961d5a5974bc4b6fe0ace1760 /js/lib/drawing/world.js | |
parent | e927e4702d7dbd4a878f6979b3f56b46758f93de (diff) | |
download | ninja-8fa51b9d8c37896dfd13a5b238cf990fcbdb0c96.tar.gz |
textures
Diffstat (limited to 'js/lib/drawing/world.js')
-rwxr-xr-x | js/lib/drawing/world.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js index 07a2c3ae..4140208c 100755 --- a/js/lib/drawing/world.js +++ b/js/lib/drawing/world.js | |||
@@ -30,6 +30,7 @@ var World = function GLWorld( canvas, use3D, preserveDrawingBuffer ) { | |||
30 | 30 | ||
31 | this._canvas = canvas; | 31 | this._canvas = canvas; |
32 | if (this._useWebGL) { | 32 | if (this._useWebGL) { |
33 | preserveDrawingBuffer = true; | ||
33 | if(preserveDrawingBuffer) { | 34 | if(preserveDrawingBuffer) { |
34 | this._glContext = canvas.getContext("experimental-webgl", {preserveDrawingBuffer: true}); | 35 | this._glContext = canvas.getContext("experimental-webgl", {preserveDrawingBuffer: true}); |
35 | } else { | 36 | } else { |