From 7952918cdb96f9c4658eb083dde3c4182c619c2f Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Mon, 9 Sep 2024 23:07:31 +0200 Subject: [PATCH] clear caches before updating component --- src/ptk_vk/components.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ptk_vk/components.c b/src/ptk_vk/components.c index 5651b90..ad08529 100644 --- a/src/ptk_vk/components.c +++ b/src/ptk_vk/components.c @@ -166,6 +166,8 @@ void component(PtkHandle c) { PTK_LIST_ADD_ALL_P(uint32_t, g_indices, icache.data, icache.size); } else { PTK_LIST_SET(bool, m_update, c->id, false); + PTK_LIST_CLEAR(m_vertices_cache.data[c->id]); + PTK_LIST_CLEAR(m_indices_cache.data[c->id]); switch (c->type) { case PTK_COMPONENT_TYPE_TRIANGLE: {