Show chosen postshader display name properly, plus some additional bugfixes. Fixes #10790

This commit is contained in:
Henrik Rydgård committed 2018-03-25 14:42:48 +02:00
1 parent f9555da05b
commit 4a3692161b
7 files changed
+42 -13

No files matched your search

+5
View File
@@ -167,11 +167,16 @@ namespace MainWindow {
}
bool CreateShadersSubmenu(HMENU menu) {
// NOTE: We do not load this until translations are loaded!
if (!I18NCategoryLoaded("PostShaders"))
return false;
// We only reload this initially and when a menu is actually opened.
if (!menuShaderInfoLoaded) {
ReloadAllPostShaderInfo();
menuShaderInfoLoaded = true;
}
std::vector<ShaderInfo> info = GetAllPostShaderInfo();
if (menuShaderInfo.size() == info.size() && std::equal(info.begin(), info.end(), menuShaderInfo.begin())) {