chore: remove extraneous file from repository (#8284)

This commit is contained in:
André Costa
2025-05-21 21:38:08 +02:00
committed by GitHub
parent 02777b6f06
commit bb1db8cfd2
-35
View File
@@ -1,35 +0,0 @@
diff --git a/src/draw/opengles/lv_draw_opengles.c b/src/draw/opengles/lv_draw_opengles.c
index b3f2122a7..bfb167bc9 100644
--- a/src/draw/opengles/lv_draw_opengles.c
+++ b/src/draw/opengles/lv_draw_opengles.c
@@ -275,6 +275,10 @@ static bool draw_to_texture(lv_draw_opengles_unit_t * u, cache_data_t * cache_da
lv_obj_remove_flag(obj, LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS);
}
+ lv_draw_dsc_base_t * base_dsc = task->draw_dsc;
+ cache_data->draw_dsc = lv_malloc(base_dsc->dsc_size);
+ lv_memcpy((void *)cache_data->draw_dsc, base_dsc, base_dsc->dsc_size);
+
switch(task->type) {
case LV_DRAW_TASK_TYPE_FILL: {
lv_draw_fill_dsc_t * fill_dsc = task->draw_dsc;
@@ -355,6 +359,8 @@ static bool draw_to_texture(lv_draw_opengles_unit_t * u, cache_data_t * cache_da
break;
}
default:
+ /*The malloced cache_data->draw_dsc will be freed automatically on failure
+ *in opengles_texture_cache_free_cb*/
return false;
}
@@ -367,10 +373,7 @@ static bool draw_to_texture(lv_draw_opengles_unit_t * u, cache_data_t * cache_da
unsigned int texture = create_texture(texture_w, texture_h, u->render_draw_buf.data);
- lv_draw_dsc_base_t * base_dsc = task->draw_dsc;
- cache_data->draw_dsc = lv_malloc(base_dsc->dsc_size);
- lv_memcpy((void *)cache_data->draw_dsc, base_dsc, base_dsc->dsc_size);
cache_data->w = texture_w;
cache_data->h = texture_h;
cache_data->texture = texture;