diff options
author | Morten Mikkelsen <mikkelsen7@gmail.com> | 2012-12-23 22:58:10 +0400 |
---|---|---|
committer | Morten Mikkelsen <mikkelsen7@gmail.com> | 2012-12-23 22:58:10 +0400 |
commit | c52468d31df98d4b975e4f00abdfa3e8ca442f6e (patch) | |
tree | 93cce698491f35870ad15d53c9cd80a08f3d4b41 /source/blender/render | |
parent | 84eaa875def980c31a339f0ca7f62b6086b88ef4 (diff) |
flip lines to reduce odds of re-execution (non critical race condition when triangles overlap
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/multires_bake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/multires_bake.c b/source/blender/render/intern/source/multires_bake.c index 9785edd3288..b8784685836 100644 --- a/source/blender/render/intern/source/multires_bake.c +++ b/source/blender/render/intern/source/multires_bake.c @@ -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); } } } |