Atomics: Make naming more obvious about which value is being returned

This commit is contained in:
Sergey Sharybin 2016-11-15 12:16:26 +01:00
parent fb2d5a9853
commit 6d6c333ee9
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ static void mesh_calc_normals_poly_accum_task_cb(void *userdata, const int pidx)
/* accumulate */
for (int k = 3; k--; ) {
atomic_add_fl(&vnors[ml[i].v][k], pnor[k] * fac);
atomic_add_and_fetch_fl(&vnors[ml[i].v][k], pnor[k] * fac);
}
prev_edge = cur_edge;
}