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 e839e229..1af02bcd 100755
--- a/js/lib/geom/line.js
+++ b/js/lib/geom/line.js
@@ -220,7 +220,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok
220 if (!world._useWebGL) return; 220 if (!world._useWebGL) return;
221 221
222 // make sure RDGE has the correct context 222 // make sure RDGE has the correct context
223 g_Engine.setContext( world.getCanvas().rdgeid ); 223 RDGE.globals.engine.setContext( world.getCanvas().rdgeid );
224 224
225 // create the gl buffer 225 // create the gl buffer
226 var gl = world.getGLContext(); 226 var gl = world.getGLContext();
@@ -381,7 +381,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok
381 indices.push( index ); index++; 381 indices.push( index ); index++;
382 } 382 }
383 383
384 var prim = ShapePrimitive.create(strokeVertices, strokeNormals, strokeTextures, indices, g_Engine.getContext().renderer.TRIANGLES, indices.length); 384 var prim = ShapePrimitive.create(strokeVertices, strokeNormals, strokeTextures, indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, indices.length);
385 385
386 var strokeMaterial = this.makeStrokeMaterial(); 386 var strokeMaterial = this.makeStrokeMaterial();
387 387