clear caches before updating component
This commit is contained in:
parent
40c2329b3c
commit
7952918cdb
1 changed files with 2 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue