flip lines to reduce odds of re-execution (non critical race condition when triangles overlap

This commit is contained in:
Morten Mikkelsen 2012-12-23 18:58:10 +00:00
parent 84eaa875de
commit c52468d31d

@ -233,8 +233,8 @@ static void set_rast_triangle(const MBakeRast *bake_rast, const int x, const int
if (x >= 0 && x < w && y >= 0 && y < h) {
if ((bake_rast->texels[y * w + x]) == 0) {
flush_pixel(bake_rast->data, x, y);
bake_rast->texels[y * w + x] = FILTER_MASK_USED;
flush_pixel(bake_rast->data, x, y);
}
}
}