summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-05-02 09:03:15 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-05-02 09:03:15 -0700
commit8292d95533801b41ee4b05edc0bf296394085528 (patch)
treeb572fe63263f357a9cb5c0da3da9547f33e272bc /src/modules
parentcb6c1863781b155b13b4b3d52676824cdbb4f568 (diff)
modules/montage: fix fragnum misuse as cpu #
This was causing the snow module to scribble via montage, since snow uses per-cpu rand seeds indexed using the cpu value. I didn't dig in to see if this was a vestigial thing where fragnum once was passed as a parameter (it's also in til_fb_fragment_t.number, but probably wasn't always that way). But it's now used as a cpu idx, but since they're the same type nothing complained, they say programming is hard.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/montage/montage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/montage/montage.c b/src/modules/montage/montage.c
index 65aabe6..645e9da 100644
--- a/src/modules/montage/montage.c
+++ b/src/modules/montage/montage.c
@@ -216,7 +216,7 @@ static void montage_render_fragment(void *context, unsigned ticks, unsigned cpu,
module->prepare_frame(ctxt->contexts[fragment->number], ticks, 1, fragment, &fragmenter);
while (fragmenter(ctxt->contexts[fragment->number], 1, fragment, fragnum++, &frag))
- module->render_fragment(ctxt->contexts[fragment->number], ticks, fragnum, &frag);
+ module->render_fragment(ctxt->contexts[fragment->number], ticks, 0, &frag);
} else if (module->render_fragment)
module->render_fragment(ctxt->contexts[fragment->number], ticks, 0, fragment);
}
© All Rights Reserved