forked from bartvdbraak/blender
Workaround #22856: defocus node with OpenMP could crash on Mac, just disabled
OpenMP now in that case, since it's only an optimization.
This commit is contained in:
parent
919d341321
commit
0a7853478f
@ -378,10 +378,12 @@ static void defocus_blur(bNode *node, CompBuf *new, CompBuf *img, CompBuf *zbuf,
|
||||
|
||||
//------------------------------------------------------------------
|
||||
// main loop
|
||||
#ifndef __APPLE__ /* can crash on Mac, see bug #22856, disabled for now */
|
||||
#ifdef __INTEL_COMPILER /* icc doesn't like the compound statement -- internal error: 0_1506 */
|
||||
#pragma omp parallel for private(y) if(!nqd->preview) schedule(guided)
|
||||
#else
|
||||
#pragma omp parallel for private(y) if(!nqd->preview && img->y*img->x > 16384) schedule(guided)
|
||||
#endif
|
||||
#endif
|
||||
for (y=0; y<img->y; y++) {
|
||||
unsigned int p, p4, zp, cp, cp4;
|
||||
|
Loading…
Reference in New Issue
Block a user