mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Small engine startup fix
This commit is contained in:
parent
56f055562d
commit
1c258828c3
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue