mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 00:00:26 +02:00
Borrow CReadFile for tests
The method to load a mesh from a file was removed. This is not a good fix, but it will keep the tests working until a file loader can be properly exposed to the tests.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#include "CReadFile.h"
|
||||
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch.hpp>
|
||||
#include <irrlicht.h>
|
||||
@ -21,7 +23,8 @@ public:
|
||||
, m_mesh { nullptr }
|
||||
{
|
||||
auto* smgr = m_device->getSceneManager();
|
||||
m_mesh = smgr->getMesh(filepath, "");
|
||||
irr::io::CReadFile f = irr::io::CReadFile(filepath);
|
||||
m_mesh = smgr->getMesh(&f);
|
||||
}
|
||||
|
||||
~ScopedMesh()
|
||||
@ -270,4 +273,4 @@ TEST_CASE("snow man") {
|
||||
CHECK(vertices[20].TCoords == irr::core::vector2df{0.208333, 0.416667});
|
||||
CHECK(vertices[22].TCoords == irr::core::vector2df{0.375, 0.416667});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user