diff options
author | Keuin <[email protected]> | 2022-04-17 20:10:25 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-17 20:10:25 +0800 |
commit | dda159f5ff347c0ffbc091c92f469749f2c043f2 (patch) | |
tree | ec8577d5d7a5f4f835bdedf93a3373ec4ca542a9 /aa.h | |
parent | 23b2d8939528bd44a40702482ef50d7b8c063254 (diff) |
Bugfix: replacing thread scheduler caused bias_ctx being initialized with a fixed seed (from the outer of the closure, using the root seed unexpectedly), which causes the antialiasing ineffective.
Diffstat (limited to 'aa.h')
-rw-r--r-- | aa.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ public: tim.start_measure(); for (typeof(samples) i = 0; i < samples; ++i) { pool.submit_task([](s_render_task &task) { - bias_ctx bc{seed}; + bias_ctx bc{task.seed}; auto image = task.shared.subs[task.task_id].render( task.shared.world, task.shared.viewpoint, task.shared.image_width, task.shared.image_height, |