mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(component): clear base texture in CCharacterComponent dtor
This commit is contained in:
parent
0f1419461e
commit
11cf32ac36
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user