feat(ui): clear render batch in dtor

This commit is contained in:
fallenoak 2023-02-21 11:52:21 -06:00
parent 75982f4091
commit e80d960d6b
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
2 changed files with 5 additions and 0 deletions

View file

@ -41,6 +41,10 @@ EGxBlend CSimpleBatchedMesh::GetAlphaMode() {
}
}
CRenderBatch::~CRenderBatch() {
this->Clear();
}
void CRenderBatch::Clear() {
this->m_texturelist.SetCount(0);