From 11cf32ac36a6684da4b928976d0182707386b0cf Mon Sep 17 00:00:00 2001 From: fallenoak Date: Thu, 1 Jan 2026 22:01:01 -0600 Subject: [PATCH] feat(component): clear base texture in CCharacterComponent dtor --- src/component/CCharacterComponent.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/component/CCharacterComponent.cpp b/src/component/CCharacterComponent.cpp index ca0058f..63e2a06 100644 --- a/src/component/CCharacterComponent.cpp +++ b/src/component/CCharacterComponent.cpp @@ -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();