diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp index 178719ba2d..46ca20cc38 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp @@ -17,15 +17,17 @@ namespace { bool IsQualifier(std::string_view value) { - static std::array qualifiers = {"attribute", "const", "highp", "lowp", - "mediump", "uniform", "varying"}; + static constexpr std::array qualifiers = { + "attribute", "const", "highp", "lowp", "mediump", "uniform", "varying", + }; return std::find(qualifiers.begin(), qualifiers.end(), value) != qualifiers.end(); } bool IsBuiltInMacro(std::string_view value) { - static std::array built_in = {"__LINE__", "__FILE__", "__VERSION__", - "GL_core_profile", "GL_compatibility_profile"}; + static constexpr std::array built_in = { + "__LINE__", "__FILE__", "__VERSION__", "GL_core_profile", "GL_compatibility_profile", + }; return std::find(built_in.begin(), built_in.end(), value) != built_in.end(); }