aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/line.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/geom/line.js')
-rwxr-xr-xjs/lib/geom/line.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/geom/line.js b/js/lib/geom/line.js
index da63b21c..e8d967f0 100755
--- a/js/lib/geom/line.js
+++ b/js/lib/geom/line.js
@@ -167,7 +167,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok
167 if (!world._useWebGL) return; 167 if (!world._useWebGL) return;
168 168
169 // make sure RDGE has the correct context 169 // make sure RDGE has the correct context
170 g_Engine.setContext( world.getCanvas().rdgeid ); 170 RDGE.globals.engine.setContext( world.getCanvas().rdgeid );
171 171
172 // create the gl buffer 172 // create the gl buffer
173 var gl = world.getGLContext(); 173 var gl = world.getGLContext();
@@ -328,7 +328,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok
328 indices.push( index ); index++; 328 indices.push( index ); index++;
329 } 329 }
330 330
331 var prim = ShapePrimitive.create(strokeVertices, strokeNormals, strokeTextures, indices, g_Engine.getContext().renderer.TRIANGLES, indices.length); 331 var prim = ShapePrimitive.create(strokeVertices, strokeNormals, strokeTextures, indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, indices.length);
332 332
333 var strokeMaterial = this.makeStrokeMaterial(); 333 var strokeMaterial = this.makeStrokeMaterial();
334 334