Commit 53122eeb authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed crash when starting without an existing configuration and removed...

fixed crash when starting without an existing configuration and removed -Werror from physfs because their code contains warnings in the newest GCC version
parent bcd62335
......@@ -49,7 +49,7 @@ ENDIF(MACOSX)
# Add some gcc-specific command lines.
IF(CMAKE_COMPILER_IS_GNUCC)
# Always build with debug symbols...you can strip it later.
ADD_DEFINITIONS(-g -pipe -Werror -fsigned-char)
ADD_DEFINITIONS(-g -pipe -fsigned-char)
# Stupid BeOS generates warnings in the system headers.
IF(NOT BEOS)
......
......@@ -27,7 +27,7 @@ namespace mirrage::renderer {
struct Renderer_settings {
int shadowmap_resolution = 4096;
int shadowmap_resolution = 2048;
int shadow_quality = 99; // 0 = lowest
bool gi = true;
......
......@@ -227,7 +227,9 @@ namespace mirrage::renderer {
auto maybe_settings = context.asset_manager().load_maybe<Renderer_settings>("cfg:renderer"_aid);
if(maybe_settings.is_nothing()) {
settings({});
_settings = std::make_shared<Renderer_settings>();
save_settings();
} else {
_settings = maybe_settings.get_or_throw();
}
......
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