aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/GLCircle.js
diff options
context:
space:
mode:
authorhwc4872012-02-08 13:41:52 -0800
committerhwc4872012-02-08 13:41:52 -0800
commit064d74fb2694318615f513c83772276cec34bb86 (patch)
treef683a9d518e827c6cac8754faf2868f2a0bfc8bf /js/helper-classes/RDGE/GLCircle.js
parent6173fe8440152b1e4c63834a6b4dc7573d532339 (diff)
downloadninja-064d74fb2694318615f513c83772276cec34bb86.tar.gz
Fixed context switching problems in rdge
Diffstat (limited to 'js/helper-classes/RDGE/GLCircle.js')
-rw-r--r--js/helper-classes/RDGE/GLCircle.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/helper-classes/RDGE/GLCircle.js b/js/helper-classes/RDGE/GLCircle.js
index 942eb528..08057778 100644
--- a/js/helper-classes/RDGE/GLCircle.js
+++ b/js/helper-classes/RDGE/GLCircle.js
@@ -133,6 +133,9 @@ function GLCircle()
133 if (!world) throw( "null world in buildBuffers" ); 133 if (!world) throw( "null world in buildBuffers" );
134 134
135 if (!world._useWebGL) return; 135 if (!world._useWebGL) return;
136
137 // make sure RDGE has the correct context
138 g_Engine.setContext( world.getCanvas().uuid );
136 139
137 // create the gl buffer 140 // create the gl buffer
138 var gl = world.getGLContext(); 141 var gl = world.getGLContext();