mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-30 17:53:09 +03:00
feat(component): clear base texture in CCharacterComponent dtor
This commit is contained in:
1 file changed
+8
-1
@@ -829,7 +829,14 @@ void CCharacterComponent::UpdateBaseTexture(EGxTexCommand cmd, uint32_t width, u
|
|||||||
}
|
}
|
||||||
|
|
||||||
CCharacterComponent::~CCharacterComponent() {
|
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) {
|
if (this->m_data.model) {
|
||||||
this->m_data.model->Release();
|
this->m_data.model->Release();
|
||||||
|
|||||||
Reference in new issue
Block a user