From 8292d95533801b41ee4b05edc0bf296394085528 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 2 May 2022 09:03:15 -0700 Subject: 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. --- src/modules/montage/montage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.1