diff options
Diffstat (limited to 'js/lib/geom/line.js')
-rwxr-xr-x | js/lib/geom/line.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/geom/line.js b/js/lib/geom/line.js index 1848218d..1b2dd4fc 100755 --- a/js/lib/geom/line.js +++ b/js/lib/geom/line.js | |||
@@ -150,7 +150,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok | |||
150 | if (!world._useWebGL) return; | 150 | if (!world._useWebGL) return; |
151 | 151 | ||
152 | // make sure RDGE has the correct context | 152 | // make sure RDGE has the correct context |
153 | g_Engine.setContext( world.getCanvas().rdgeid ); | 153 | RDGE.globals.engine.setContext( world.getCanvas().rdgeid ); |
154 | 154 | ||
155 | // create the gl buffer | 155 | // create the gl buffer |
156 | var gl = world.getGLContext(); | 156 | var gl = world.getGLContext(); |
@@ -311,7 +311,7 @@ var Line = function GLLine( world, xOffset, yOffset, width, height, slope, strok | |||
311 | indices.push( index ); index++; | 311 | indices.push( index ); index++; |
312 | } | 312 | } |
313 | 313 | ||
314 | var prim = ShapePrimitive.create(strokeVertices, strokeNormals, strokeTextures, indices, g_Engine.getContext().renderer.TRIANGLES, indices.length); | 314 | var prim = ShapePrimitive.create(strokeVertices, strokeNormals, strokeTextures, indices, RDGE.globals.engine.getContext().renderer.TRIANGLES, indices.length); |
315 | 315 | ||
316 | var strokeMaterial = this.makeStrokeMaterial(); | 316 | var strokeMaterial = this.makeStrokeMaterial(); |
317 | 317 | ||