fix(vglite) Small cleanup.

This commit is contained in:
Nicușor Cîțu
2024-09-30 13:34:40 +03:00
committed by Gabor Kiss-Vamosi
parent 29c977042e
commit c3ec922708

View File

@@ -306,8 +306,7 @@ static int32_t _vglite_dispatch(lv_draw_unit_t * draw_unit, lv_layer_t * layer)
} }
} }
void * buf = lv_draw_layer_alloc_buf(layer); if(lv_draw_layer_alloc_buf(layer) == NULL)
if(buf == NULL)
return LV_DRAW_UNIT_IDLE; return LV_DRAW_UNIT_IDLE;
t->state = LV_DRAW_TASK_STATE_IN_PROGRESS; t->state = LV_DRAW_TASK_STATE_IN_PROGRESS;