Merge branch 'master' into master
commit
0273ffc367
|
@ -128,6 +128,7 @@ bool EmbedTexturesProcess::addTexture(aiScene* pScene, std::string path) const {
|
||||||
auto oldTextures = pScene->mTextures;
|
auto oldTextures = pScene->mTextures;
|
||||||
pScene->mTextures = new aiTexture*[pScene->mNumTextures];
|
pScene->mTextures = new aiTexture*[pScene->mNumTextures];
|
||||||
::memmove(pScene->mTextures, oldTextures, sizeof(aiTexture*) * (pScene->mNumTextures - 1u));
|
::memmove(pScene->mTextures, oldTextures, sizeof(aiTexture*) * (pScene->mNumTextures - 1u));
|
||||||
|
delete [] oldTextures;
|
||||||
|
|
||||||
// Add the new texture
|
// Add the new texture
|
||||||
auto pTexture = new aiTexture;
|
auto pTexture = new aiTexture;
|
||||||
|
|
Loading…
Reference in New Issue