diff options
Diffstat (limited to 'examples/AutomatedTest')
-rw-r--r-- | examples/AutomatedTest/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/AutomatedTest/main.cpp b/examples/AutomatedTest/main.cpp index 6e9d646..96cbc73 100644 --- a/examples/AutomatedTest/main.cpp +++ b/examples/AutomatedTest/main.cpp @@ -87,8 +87,12 @@ int main(int argc, char *argv[]) const io::path mediaPath = getExampleMediaPath();
- scene::IAnimatedMesh* mesh = smgr->getMesh(mediaPath + "coolguy_opt.x");
+ auto mesh_file = device->getFileSystem()->createAndOpenFile(mediaPath + "coolguy_opt.x");
+ check(mesh_file, "mesh file loading");
+ scene::IAnimatedMesh* mesh = smgr->getMesh(mesh_file);
check(mesh, "mesh loading");
+ if (mesh_file)
+ mesh_file->drop();
if (mesh)
{
video::ITexture* tex = driver->getTexture(mediaPath + "cooltexture.png");
|