Fix OpenMP compilation
Delete a #pragma that tries to paralellize a BOOST_FOREACH loop. This doesn't work as boost inserts lines before the for, thus hindering the compiler to find the 'for'.
This commit is contained in:
parent
ad7cf1317d
commit
4a99787348
1 changed files with 0 additions and 3 deletions
|
@ -3068,9 +3068,6 @@ void display::invalidate_animations()
|
||||||
bool new_inval;
|
bool new_inval;
|
||||||
do {
|
do {
|
||||||
new_inval = false;
|
new_inval = false;
|
||||||
#ifdef _OPENMP
|
|
||||||
#pragma omp parallel for reduction(|:new_inval) shared(unit_list) schedule(guided)
|
|
||||||
#endif //_OPENMP
|
|
||||||
BOOST_FOREACH(const unit & u, dc_->units()) {
|
BOOST_FOREACH(const unit & u, dc_->units()) {
|
||||||
new_inval |= u.anim_comp().invalidate(*this);
|
new_inval |= u.anim_comp().invalidate(*this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue