aboutsummaryrefslogtreecommitdiff
path: root/js/tools/BrushTool.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-22 14:24:46 -0700
committerNivesh Rajbhandari2012-03-22 14:24:46 -0700
commit636014cf5d824909993d7dc3510fbe6ce2fc72f1 (patch)
tree2d148b138b9d283fdd6228d31801c5924cf70d01 /js/tools/BrushTool.js
parent6965b72f1f42f7280bc5e5e52d08b3d64d106831 (diff)
downloadninja-636014cf5d824909993d7dc3510fbe6ce2fc72f1.tar.gz
WebGL needs to have 3d styles to render.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools/BrushTool.js')
-rw-r--r--js/tools/BrushTool.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js
index 4ce9976a..ac29f2f2 100644
--- a/js/tools/BrushTool.js
+++ b/js/tools/BrushTool.js
@@ -252,7 +252,7 @@ exports.BrushTool = Montage.create(ShapeTool, {
252 252
253 if (!canvas) { 253 if (!canvas) {
254 var newCanvas = NJUtils.makeNJElement("canvas", "Brushstroke", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); 254 var newCanvas = NJUtils.makeNJElement("canvas", "Brushstroke", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true);
255 var elementModel = TagTool.makeElement(w, h, planeMat, midPt, newCanvas); 255 var elementModel = TagTool.makeElement(w, h, planeMat, midPt, newCanvas, this._useWebGL);
256 ElementMediator.addElement(newCanvas, elementModel.data, true); 256 ElementMediator.addElement(newCanvas, elementModel.data, true);
257 257
258 // create all the GL stuff 258 // create all the GL stuff