summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-17 20:10:25 +0800
committerKeuin <[email protected]>2022-04-17 20:10:25 +0800
commitdda159f5ff347c0ffbc091c92f469749f2c043f2 (patch)
treeec8577d5d7a5f4f835bdedf93a3373ec4ca542a9
parent23b2d8939528bd44a40702482ef50d7b8c063254 (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.
-rw-r--r--aa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/aa.h b/aa.h
index 769eb31..988a2f7 100644
--- a/aa.h
+++ b/aa.h
@@ -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,