From ebb34ced91038ee9d53cf9e20b17046490861d1a Mon Sep 17 00:00:00 2001 From: degasus Date: Thu, 7 Mar 2013 19:11:50 +0100 Subject: [PATCH] postprocessing: only add *.txt shader and sort them --- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index 5236c27f9d..56a56418b1 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -55,6 +55,7 @@ Make AA apply instantly during gameplay if possible #include "LogManager.h" #include +#include #ifdef _WIN32 #include "EmuWindow.h" @@ -116,10 +117,12 @@ void GetShaders(std::vector &shaders) for (u32 i = 0; i < entry.children.size(); i++) { std::string name = entry.children[i].virtualName.c_str(); - if (!strcasecmp(name.substr(name.size() - 4).c_str(), ".txt")) + if (!strcasecmp(name.substr(name.size() - 4).c_str(), ".txt")) { name = name.substr(0, name.size() - 4); - shaders.push_back(name); + shaders.push_back(name); + } } + std::sort(shaders.begin(), shaders.end()); } else {