feat(component): clear base texture in CCharacterComponent dtor

This commit is contained in:
fallenoak committed 2026-01-01 22:01:01 -06:00
1 parent 0f1419461e
commit 11cf32ac36
1 file changed
+8 -1
+8 -1
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();