aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/GLLine.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/RDGE/GLLine.js')
-rw-r--r--js/helper-classes/RDGE/GLLine.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/helper-classes/RDGE/GLLine.js b/js/helper-classes/RDGE/GLLine.js
index 67379b52..1cd70575 100644
--- a/js/helper-classes/RDGE/GLLine.js
+++ b/js/helper-classes/RDGE/GLLine.js
@@ -114,6 +114,9 @@ function GLLine( world, xOffset, yOffset, width, height, slope, strokeSize, stro
114 var world = this.getWorld(); 114 var world = this.getWorld();
115 if (!world) throw( "null world in buildBuffers" ); 115 if (!world) throw( "null world in buildBuffers" );
116 if (!world._useWebGL) return; 116 if (!world._useWebGL) return;
117
118 // make sure RDGE has the correct context
119 g_Engine.setContext( world.getCanvas().uuid );
117 120
118 // create the gl buffer 121 // create the gl buffer
119 var gl = world.getGLContext(); 122 var gl = world.getGLContext();