mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-24 16:37:18 +08:00
chore: remove extraneous file from repository (#8284)
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user