One last try - this should fix the remaining issues:
* Made bvh_node_merge() in svbvh.h static (fix suggested by jaguarandi). This makes mingw link again.
* Also, patched my previous fix for  ... = {}; since mingw didn't like the other fix (which was for msvc).
			
			
This commit is contained in:
		@@ -76,7 +76,7 @@ inline void bvh_node_push_childs<SVBVHNode>(SVBVHNode *node, Isect *isec, SVBVHN
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template<>
 | 
			
		||||
void bvh_node_merge_bb<SVBVHNode>(SVBVHNode *node, float *min, float *max)
 | 
			
		||||
static void bvh_node_merge_bb<SVBVHNode>(SVBVHNode *node, float *min, float *max)
 | 
			
		||||
{
 | 
			
		||||
	if(is_leaf(node))
 | 
			
		||||
	{
 | 
			
		||||
 
 | 
			
		||||
@@ -134,7 +134,7 @@ RayObject*  RE_rayobject_create(Render *re, int type, int size)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#ifdef RE_RAYCOUNTER
 | 
			
		||||
RayCounter re_rc_counter[BLENDER_MAX_THREADS] = {0};
 | 
			
		||||
RayCounter re_rc_counter[BLENDER_MAX_THREADS];
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -180,7 +180,7 @@ void freeraytree(Render *re)
 | 
			
		||||
	
 | 
			
		||||
#ifdef RE_RAYCOUNTER
 | 
			
		||||
	{
 | 
			
		||||
		RayCounter sum = {0};
 | 
			
		||||
		RayCounter sum;
 | 
			
		||||
		int i;
 | 
			
		||||
		for(i=0; i<BLENDER_MAX_THREADS; i++)
 | 
			
		||||
			RE_RC_MERGE(&sum, re_rc_counter+i);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user