diff --git a/src/mesh.cpp b/src/mesh.cpp index c2e6bca..2e197ac 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -282,7 +282,6 @@ scene::IAnimatedMesh* createExtrudedMesh(video::ITexture *texture, if (img2 != NULL) { img1->copyTo(img2); - img1->drop(); mesh = extrudeARGB(size.Width, size.Height, (u8*) img2->lock()); img2->unlock(); @@ -363,7 +362,7 @@ void setMeshColor(scene::IMesh *mesh, const video::SColor &color) { if(mesh == NULL) return; - + u16 mc = mesh->getMeshBufferCount(); for(u16 j=0; jgetMeshBufferCount(); for(u16 j=0; j