diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp index 2466a58528..9776d4480a 100644 --- a/Source/Core/VideoBackends/OGL/main.cpp +++ b/Source/Core/VideoBackends/OGL/main.cpp @@ -38,7 +38,6 @@ Make AA apply instantly during gameplay if possible #include #include -#include #include "Common/Atomic.h" #include "Common/CommonPaths.h" @@ -105,7 +104,11 @@ static std::vector GetShaders(const std::string &sub_dir = "") }); std::vector result; for (std::string path : paths) - result.push_back(std::regex_replace(path, std::regex("^.*/(.*)\\.glsl$"), "$1")); + { + std::string name; + SplitPath(path, nullptr, &name, nullptr); + result.push_back(name); + } return result; }