diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-10-17 02:34:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-17 02:34:18 +0200 |
| commit | 7122c7e87212ec007ca30c38809aa5ded3c6331f (patch) | |
| tree | 0ae0fe19fcca4a841f52c05d55cabd08091e4015 /Source/Core/VideoCommon/Assets/ShaderAsset.cpp | |
| parent | 2ae9771a30bf5489e68632bc57b41d3c99e6d2c6 (diff) | |
| parent | b292022bc7ac424ed00dd606b5f18ee32b9b576a (diff) | |
Merge pull request #12243 from iwubcode/tolower_assets
VideoCommon: use ToLower function in assets when parsing json
Diffstat (limited to 'Source/Core/VideoCommon/Assets/ShaderAsset.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Assets/ShaderAsset.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp index f71ed65ff7..e58b9bfbb6 100644 --- a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp +++ b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp @@ -9,6 +9,7 @@ #include <utility> #include "Common/Logging/Log.h" +#include "Common/StringUtil.h" #include "VideoCommon/Assets/CustomAssetLibrary.h" namespace VideoCommon @@ -47,8 +48,7 @@ bool ParseShaderProperties(const VideoCommon::CustomAssetLibrary::AssetID& asset return false; } std::string type = type_iter->second.to_str(); - std::transform(type.begin(), type.end(), type.begin(), - [](unsigned char c) { return std::tolower(c); }); + Common::ToLower(&type); static constexpr std::array<std::pair<std::string_view, ShaderProperty::Type>, static_cast<int>(ShaderProperty::Type::Type_Max)> |
