Commit ca4865d7 authored by Janis Born's avatar Janis Born
Browse files

VertexArrayObjectControlFile now uses geometry path by default

(fixes VAOFileManager reloading every frame)
parent 5226a30a
......@@ -27,7 +27,7 @@ public:
template<typename CONTROLLER>
VertexArrayObjectControlFile(const CONTROLLER& _fileController)
: Resource::FileController<VertexArrayObject>(_fileController.getFilename(), Base::Settings::the()->getFullTexturePath()),
: Resource::FileController<VertexArrayObject>(_fileController.getFilename(), Base::Settings::the()->getFullGeometryPath()),
mDataController(new CONTROLLER(_fileController)),
mAttributeLocations()
{}
......
......@@ -9,7 +9,7 @@
using namespace ACGL::OpenGL;
VertexArrayObjectControlFile::VertexArrayObjectControlFile(const std::string& _filename)
: Resource::FileController<VertexArrayObject>(_filename, Base::Settings::the()->getFullTexturePath()),
: Resource::FileController<VertexArrayObject>(_filename, Base::Settings::the()->getFullGeometryPath()),
mDataController(GeometryDataControlFileFactory::the()->create(_filename))
{
if(!mDataController)
......@@ -17,7 +17,7 @@ VertexArrayObjectControlFile::VertexArrayObjectControlFile(const std::string& _f
}
VertexArrayObjectControlFile::VertexArrayObjectControlFile(const char* _filename)
: Resource::FileController<VertexArrayObject>(std::string(_filename), Base::Settings::the()->getFullTexturePath()),
: Resource::FileController<VertexArrayObject>(std::string(_filename), Base::Settings::the()->getFullGeometryPath()),
mDataController(GeometryDataControlFileFactory::the()->create(std::string(_filename)))
{
if(!mDataController)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment