Load graphics preset anyway if user.cfg doesnt exist
This commit is contained in:
parent
d5dcb3ddee
commit
80deaf7142
3 changed files with 6 additions and 1 deletions
|
@ -66,8 +66,10 @@ void loadGraphicsConfig() {
|
|||
|
||||
void readConfig() {
|
||||
Config config;
|
||||
if(!config.load("user.cfg"))
|
||||
if(!config.load("user.cfg")) {
|
||||
loadGraphicsConfig(); // load medium anyway
|
||||
return;
|
||||
}
|
||||
|
||||
windowX = toInt(config.get("Window", "x"));
|
||||
windowY = toInt(config.get("Window", "y"));
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "shadowpass.h"
|
||||
|
||||
#include <array>
|
||||
#include <glm/glm.hpp>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include "skypass.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "renderer.h"
|
||||
|
||||
SkyPass::SkyPass(Renderer& renderer) : renderer_(renderer) {
|
||||
|
|
Reference in a new issue