Smoke: Fix messed up shadow display with OpenMP. This needs fixing. For now disable...
authorDaniel Genrich <daniel.genrich@gmx.net>
Mon, 28 May 2012 14:31:08 +0000 (14:31 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Mon, 28 May 2012 14:31:08 +0000 (14:31 +0000)
Part of my Blender Smoke Development Phase III.

(accidently commited this to smoke2 branch first)

source/blender/blenkernel/intern/smoke.c

index ce739a00bb40e05661c02352db8c05d4e9d28daf..46286eb6cf9e8d94bcff14b22ac0651725c3807a 100644 (file)
@@ -1868,7 +1868,7 @@ static float calc_voxel_transp(float *result, float *input, int res[3], int *pix
        
        if(result[index] < 0.0f)        
        {
-#pragma omp critical           
+// #pragma omp critical                
                result[index] = *tRay;  
        }       
 
@@ -2012,7 +2012,7 @@ static void smoke_calc_transparency(float *result, float *input, float *p0, floa
        bv[4] = p0[2];
        bv[5] = p1[2];
 
-#pragma omp parallel for schedule(static,1)
+// #pragma omp parallel for schedule(static,1)
        for(z = 0; z < res[2]; z++)
        {
                size_t index = z*slabsize;