Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions workspace/all/minarch/minarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -6971,9 +6971,20 @@ static int OptionShaders_optionChanged(MenuList* list, int i) {
MenuItem* item = &list->items[y];
item->value = config.shaders.options[y].value;
}
// Recursively call Config_syncShaders again for some reason
if(i==SH_SHADERS_PRESET)

if(i==SH_SHADERS_PRESET) {
// On shader preset change:
// Push all new shader settings to shader engine,
// compile shaders if needed, populate pragmas list
initShaders();

// Now that we have a list of shader parameters,
// re-read shader preset file to set pragma values in-menu
Config_syncShaders(item->key, item->value);

// Push parameters to shader engine
applyShaderSettings();
}
return MENU_CALLBACK_NOP;
}

Expand Down
Loading