diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2025-08-05 16:47:21 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2025-08-05 16:50:49 -0700 |
commit | 611ef86055b093e4fc8cfeab804037e82804f178 (patch) | |
tree | a2f4d7061191be6e60e219d540a92239570ddea1 /src/modules/checkers | |
parent | 5b14012c8a1ab6ae60f340ce253463c0b4e81791 (diff) |
modules/checkers: set cleared flag for waste_fb
This can't be left to whatever it happens to be, it matters.
Diffstat (limited to 'src/modules/checkers')
-rw-r--r-- | src/modules/checkers/checkers.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/checkers/checkers.c b/src/modules/checkers/checkers.c index 59421c3..4fe3207 100644 --- a/src/modules/checkers/checkers.c +++ b/src/modules/checkers/checkers.c @@ -148,7 +148,7 @@ static til_module_context_t * checkers_create_context(const til_module_t *module * adding a size member to til_module_context_t, which is straightforward to add. */ - ctxt->waste_fb = (til_fb_fragment_t){ + ctxt->waste_fb = (til_fb_fragment_t){ .buf = malloc(waste_fb_size * waste_fb_size * sizeof(uint32_t)), .frame_width = waste_fb_size, .frame_height = waste_fb_size, @@ -476,6 +476,13 @@ static int checkers_finish_frame(til_module_context_t *context, til_stream_t *st * modules wanting to do the same thing with concurrent clones so it's worth sorting * out all the details. */ + + /* It's important that the waste_fb's cleared state match the actual fragment_ptr's, + * since some modules do drastically different things when overlayed vs. not - which + * they detect via the cleared flag. + */ + ctxt->waste_fb.cleared = (*fragment_ptr)->cleared; + til_module_render(ctxt->fill_module_contexts[i], stream, ticks, &waste_fb_ptr); #if 0 /* This is probably an interesting thing to measure. On a busy system, it's not surprising |