mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +03:00
feat(ui): clean up draw layers and batches in CSimpleFrame dtor
This commit is contained in:
1 file changed
+8
@@ -73,6 +73,14 @@ CSimpleFrame::~CSimpleFrame() {
|
|||||||
delete this->m_titleRegion;
|
delete this->m_titleRegion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int32_t layer = 0; layer < NUM_SIMPLEFRAME_DRAWLAYERS; layer++) {
|
||||||
|
this->m_drawlayers[layer].UnlinkAll();
|
||||||
|
|
||||||
|
if (this->m_batch[layer]) {
|
||||||
|
delete this->m_batch[layer];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user