Small engine startup fix
This commit is contained in:
+3
-1
@@ -36,7 +36,9 @@ using gui::GUI;
|
|||||||
|
|
||||||
Engine::Engine(EngineSettings& settings, EnginePaths* paths, Content* content)
|
Engine::Engine(EngineSettings& settings, EnginePaths* paths, Content* content)
|
||||||
: settings(settings), content(content), paths(paths) {
|
: settings(settings), content(content), paths(paths) {
|
||||||
Window::initialize(settings.display);
|
if (Window::initialize(settings.display)){
|
||||||
|
throw initialize_error("could not initialize window");
|
||||||
|
}
|
||||||
Shader::preprocessor->setLibFolder(paths->getResources()/path("shaders/lib"));
|
Shader::preprocessor->setLibFolder(paths->getResources()/path("shaders/lib"));
|
||||||
|
|
||||||
assets = new Assets();
|
assets = new Assets();
|
||||||
|
|||||||
Reference in New Issue
Block a user