feat(component): clear base texture in CCharacterComponent dtor

This commit is contained in:
fallenoak 2026-01-01 22:01:01 -06:00
parent 0f1419461e
commit 11cf32ac36
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -829,7 +829,14 @@ void CCharacterComponent::UpdateBaseTexture(EGxTexCommand cmd, uint32_t width, u
}
CCharacterComponent::~CCharacterComponent() {
// TODO destroy base texture
// TODO
if (this->m_baseTexture) {
// TODO GxTexSetCannotUpdate
HandleClose(this->m_baseTexture);
this->m_baseTexture = nullptr;
}
if (this->m_data.model) {
this->m_data.model->Release();