Fix for glsl threading crash #97 2/?

This commit is contained in:
deltaoscarmike
2018-09-02 20:05:30 +02:00
parent 73dc5ccbd9
commit 9f8db27a3b
2 changed files with 16 additions and 1 deletions

View File

@ -228,7 +228,7 @@ void projectM::readConfig (const std::string & configFile )
_settings.easterEgg = config.read<float> ( "Easter Egg Parameter", 0.0);
_settings.softCutRatingsEnabled =
config.read<float> ( "Soft Cut Ratings Enabled", false);
config.read<bool> ( "Soft Cut Ratings Enabled", false);
projectM_init ( _settings.meshX, _settings.meshY, _settings.fps,
_settings.textureSize, _settings.windowWidth,_settings.windowHeight);

View File

@ -135,6 +135,21 @@ public:
float easterEgg;
bool shuffleEnabled;
bool softCutRatingsEnabled;
Settings() :
meshX(32),
meshY(24),
fps(35),
textureSize(512),
windowWidth(512),
windowHeight(512),
smoothPresetDuration(10),
presetDuration(15),
beatSensitivity(10.0),
aspectCorrection(true),
easterEgg(0.0),
shuffleEnabled(true),
softCutRatingsEnabled(false) {}
};
projectM(std::string config_file, int flags = FLAG_NONE);