Commit 5b74edb2 authored by Rahix's avatar Rahix
Browse files

pycardium: ctx: Flush drawlist

parent f4b578a9
Pipeline #5450 passed with stages
in 57 seconds
......@@ -370,6 +370,14 @@ static mp_obj_t mp_ctx_update(mp_obj_t self_in, mp_obj_t display_in)
}
int res = epic_disp_ctx(self->ctx);
/*
* The drawlist still contains the draw commands which were just
* executed. Flush them now.
*/
ctx_drawlist_clear(self->ctx);
/* report errors from epic_disp_ctx() */
if (res < 0) {
mp_raise_OSError(-res);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment