diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-10-21 20:25:09 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-10-22 01:00:09 +0100 |
commit | 195d26d813849ecdbf67d4e74f4cc276fb69ed1d (patch) | |
tree | aabced18762c3d4bbd7d04e9b4f78614d9e31026 /gfx/gl/shader.cpp | |
parent | Fix type of filehandle mode parameter (diff) | |
download | ilt-195d26d813849ecdbf67d4e74f4cc276fb69ed1d.tar.bz2 ilt-195d26d813849ecdbf67d4e74f4cc276fb69ed1d.tar.xz ilt-195d26d813849ecdbf67d4e74f4cc276fb69ed1d.zip |
Bump to CTRE to v3.9.0-1-gacb2f4d to fix compilation with clang 19
Swaps ctre::range to ctre::search_all
Diffstat (limited to 'gfx/gl/shader.cpp')
-rw-r--r-- | gfx/gl/shader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/shader.cpp b/gfx/gl/shader.cpp index 931c372..9a4c270 100644 --- a/gfx/gl/shader.cpp +++ b/gfx/gl/shader.cpp @@ -63,8 +63,8 @@ Shader::compile() const }; if (lookups) { std::basic_string<GLchar> textMod {text}; - for (const auto & match : ctre::range<R"(\bGL_[A-Z_]+\b)">(textMod)) { - if (const auto lookup = std::find_if(LOOKUPS.begin(), LOOKUPS.end(), + for (const auto & match : ctre::search_all<R"(\bGL_[A-Z_]+\b)">(textMod)) { + if (const auto * const lookup = std::find_if(LOOKUPS.begin(), LOOKUPS.end(), [&match](const auto & lookup) { return std::get<std::string_view>(lookup) == match; }); |