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 1e98855e..8ee39098 100755
--- a/js/lib/geom/line.js
+++ b/js/lib/geom/line.js
@@ -158,7 +158,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok
158 if (!world._useWebGL) return; 158 if (!world._useWebGL) return;
159 159
160 // make sure RDGE has the correct context 160 // make sure RDGE has the correct context
161 g_Engine.setContext( world.getCanvas().rdgeid ); 161 RDGE.globals.engine.setContext( world.getCanvas().rdgeid );
162 162
163 // create the gl buffer 163 // create the gl buffer
164 var gl = world.getGLContext(); 164 var gl = world.getGLContext();
@@ -319,7 +319,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok
319 indices.push( index ); index++; 319 indices.push( index ); index++;
320 } 320 }
321 321
322 var prim = ShapePrimitive.create(strokeVertices, strokeNormals, strokeTextures, indices, g_Engine.getContext().renderer.TRIANGLES, indices.length); 322 var prim = ShapePrimitive.create(strokeVertices, strokeNormals, strokeTextures, indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, indices.length);
323 323
324 var strokeMaterial = this.makeStrokeMaterial(); 324 var strokeMaterial = this.makeStrokeMaterial();
325 325