Fix bug where we'd reload the post shader information every frame. Fixes #9410

This commit is contained in:
Henrik Rydgard committed 2017-03-11 12:25:43 +01:00
1 parent e68ea3bc3a
commit 9bb81a24c0
8 files changed
+13 -9

No files matched your search

+1
View File
@@ -174,6 +174,7 @@ namespace MainWindow {
RemoveMenu(optionsMenu, SUBMENU_CUSTOM_SHADERS, MF_BYPOSITION);
InsertMenu(optionsMenu, SUBMENU_CUSTOM_SHADERS, MF_POPUP | MF_STRING | MF_BYPOSITION, (UINT_PTR)shaderMenu, key.c_str());
ReloadAllPostShaderInfo();
std::vector<ShaderInfo> info = GetAllPostShaderInfo();
availableShaders.clear();