More work on SceneGraphLoader

This commit is contained in:
Alexander Bock
2015-04-08 14:47:09 +02:00
parent 75e21ecefe
commit 5a2c1b8c73
7 changed files with 244 additions and 19 deletions

View File

@@ -121,7 +121,7 @@ OpenSpaceEngine::~OpenSpaceEngine() {
}
OpenSpaceEngine& OpenSpaceEngine::ref() {
assert(_engine);
ghoul_assert(_engine, "OpenSpaceEngine not created");
return *_engine;
}
@@ -130,7 +130,7 @@ bool OpenSpaceEngine::create(
std::vector<std::string>& sgctArguments,
std::string& openGlVersion)
{
assert(_engine == nullptr);
ghoul_assert(!_engine, "OpenSpaceEngine was already created");
// Initialize the LogManager and add the console log as this will be used every time
// and we need a fall back if something goes wrong between here and when we add the