diff trunk/chipmunkd/cpCollision.d @ 28:4541ca17975b

use __gshared as chipmunk heavily relies on globals and D would otherwise make them TLS
author Extrawurst
date Mon, 13 Dec 2010 21:40:56 +0100
parents 4ceef5833c8c
children
line wrap: on
line diff
--- a/trunk/chipmunkd/cpCollision.d	Mon Dec 13 21:24:12 2010 +0100
+++ b/trunk/chipmunkd/cpCollision.d	Mon Dec 13 21:40:56 2010 +0100
@@ -351,7 +351,7 @@
 	&poly2poly,
 ];
 
-static collisionFunc[cpShapeType.CP_NUM_SHAPES * cpShapeType.CP_NUM_SHAPES] colfuncs = builtinCollisionFuncs;
+__gshared collisionFunc[cpShapeType.CP_NUM_SHAPES * cpShapeType.CP_NUM_SHAPES] colfuncs = builtinCollisionFuncs;
 
 static void
 addColFunc(const cpShapeType a, const cpShapeType b, collisionFunc func)