load tx1d texture
This commit is contained in:
@@ -39,7 +39,13 @@ void GeometryEngine::clearData()
|
||||
if (m_materials != Q_NULLPTR)
|
||||
{
|
||||
for (auto it : *m_materials)
|
||||
delete it.texture0;
|
||||
{
|
||||
if (it.texture0 != Q_NULLPTR)
|
||||
delete it.texture0;
|
||||
|
||||
if (it.texture1 != Q_NULLPTR)
|
||||
delete it.texture1;
|
||||
}
|
||||
m_materials->clear();
|
||||
delete m_materials;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user