remove MAC_STATIC hack
This commit is contained in:
@@ -381,8 +381,7 @@ mesh_t *SubdivideMesh( mesh_t in, float maxError, float minLength ){
|
||||
float len;
|
||||
mesh_t out;
|
||||
|
||||
/* ydnar: static for os x */
|
||||
MAC_STATIC bspDrawVert_t expand[MAX_EXPANDED_AXIS][MAX_EXPANDED_AXIS];
|
||||
bspDrawVert_t expand[MAX_EXPANDED_AXIS][MAX_EXPANDED_AXIS];
|
||||
|
||||
|
||||
out.width = in.width;
|
||||
@@ -547,8 +546,7 @@ mesh_t *SubdivideMesh2( mesh_t in, int iterations ){
|
||||
bspDrawVert_t prev, next, mid;
|
||||
mesh_t out;
|
||||
|
||||
/* ydnar: static for os x */
|
||||
MAC_STATIC bspDrawVert_t expand[ MAX_EXPANDED_AXIS ][ MAX_EXPANDED_AXIS ];
|
||||
bspDrawVert_t expand[ MAX_EXPANDED_AXIS ][ MAX_EXPANDED_AXIS ];
|
||||
|
||||
|
||||
/* initial setup */
|
||||
@@ -654,8 +652,7 @@ mesh_t *RemoveLinearMeshColumnsRows( mesh_t *in ) {
|
||||
vec3_t proj, dir;
|
||||
mesh_t out;
|
||||
|
||||
/* ydnar: static for os x */
|
||||
MAC_STATIC bspDrawVert_t expand[MAX_EXPANDED_AXIS][MAX_EXPANDED_AXIS];
|
||||
bspDrawVert_t expand[MAX_EXPANDED_AXIS][MAX_EXPANDED_AXIS];
|
||||
|
||||
|
||||
out.width = in->width;
|
||||
|
||||
@@ -424,10 +424,9 @@ void PatchMapDrawSurfs( entity_t *e ){
|
||||
vec3_t bounds[ 2 ];
|
||||
byte *bordering;
|
||||
|
||||
/* ydnar: mac os x fails with these if not static */
|
||||
MAC_STATIC parseMesh_t *meshes[ MAX_MAP_DRAW_SURFS ];
|
||||
MAC_STATIC bool grouped[ MAX_MAP_DRAW_SURFS ];
|
||||
MAC_STATIC byte group[ MAX_MAP_DRAW_SURFS ];
|
||||
parseMesh_t *meshes[ MAX_MAP_DRAW_SURFS ];
|
||||
bool grouped[ MAX_MAP_DRAW_SURFS ];
|
||||
byte group[ MAX_MAP_DRAW_SURFS ];
|
||||
|
||||
|
||||
/* note it */
|
||||
|
||||
@@ -98,13 +98,6 @@
|
||||
|
||||
------------------------------------------------------------------------------- */
|
||||
|
||||
#define MAC_STATIC_HACK 0
|
||||
#if defined( __APPLE__ ) && MAC_STATIC_HACK
|
||||
#define MAC_STATIC static
|
||||
#else
|
||||
#define MAC_STATIC
|
||||
#endif
|
||||
|
||||
/* macro version */
|
||||
#define VectorMA( a, s, b, c ) ( ( c )[ 0 ] = ( a )[ 0 ] + ( s ) * ( b )[ 0 ], ( c )[ 1 ] = ( a )[ 1 ] + ( s ) * ( b )[ 1 ], ( c )[ 2 ] = ( a )[ 2 ] + ( s ) * ( b )[ 2 ] )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user