aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-07-23 17:15:47 -0700
committerJose Antonio Marquez2012-07-23 17:15:47 -0700
commit6908422084dbfef5420e1a9ce584d56aad9a2c14 (patch)
treec5e74cc54e1d4d38ee08378998ce1c93453489b3 /js/lib/rdge
parentafc7ad4f240fdf7890a79c2d4d7f8eb2e7c30a34 (diff)
parenta3f04ac0a68e428017dc51a1ba28c33f250adaf6 (diff)
downloadninja-6908422084dbfef5420e1a9ce584d56aad9a2c14.tar.gz
Merge branch 'refs/heads/Ninja-Master' into Document
Diffstat (limited to 'js/lib/rdge')
-rwxr-xr-xjs/lib/rdge/materials/material.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/material.js b/js/lib/rdge/materials/material.js
index e8571e9d..227a772a 100755
--- a/js/lib/rdge/materials/material.js
+++ b/js/lib/rdge/materials/material.js
@@ -263,6 +263,10 @@ var Material = function GLMaterial( world ) {
263 var material = this._materialNode; 263 var material = this._materialNode;
264 if (material) technique = material.shaderProgram[this.getTechniqueName()]; 264 if (material) technique = material.shaderProgram[this.getTechniqueName()];
265 265
266 // make sure RDGE has the correct context
267 if (this.getWorld())
268 RDGE.globals.engine.setContext( this.getWorld().getCanvas().rdgeid );
269
266 if(prop === "gradient") { 270 if(prop === "gradient") {
267 this.setGradientData(value); 271 this.setGradientData(value);
268 } else { 272 } else {