From 112cf7f621dc9a5900674d2bc5d99dd0e34e451d Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 12 Jul 2023 13:11:25 -0700 Subject: modules/blinds: update taps in prepare_frame Silly and unnecessarily racy to do this in render_fragment now that blinds is threaded --- src/modules/blinds/blinds.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/blinds/blinds.c b/src/modules/blinds/blinds.c index c4ee07f..8ffd596 100644 --- a/src/modules/blinds/blinds.c +++ b/src/modules/blinds/blinds.c @@ -77,7 +77,11 @@ static til_module_context_t * blinds_create_context(const til_module_t *module, static void blinds_prepare_frame(til_module_context_t *context, til_stream_t *stream, unsigned ticks, til_fb_fragment_t **fragment_ptr, til_frame_plan_t *res_frame_plan) { + blinds_context_t *ctxt = (blinds_context_t *)context; + *res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_tile64 }; + + blinds_update_taps(ctxt, stream, ticks); } @@ -152,8 +156,6 @@ static void blinds_render_fragment(til_module_context_t *context, til_stream_t * unsigned blind; float t; - blinds_update_taps(ctxt, stream, ticks); - til_fb_fragment_clear(fragment); for (t = *ctxt->t, blind = 0; blind < (unsigned)*ctxt->count; blind++, t += *ctxt->step) { -- cgit v1.2.3