summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-10-21 20:25:09 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-10-22 01:00:09 +0100
commit195d26d813849ecdbf67d4e74f4cc276fb69ed1d (patch)
treeaabced18762c3d4bbd7d04e9b4f78614d9e31026 /gfx
parentFix type of filehandle mode parameter (diff)
downloadilt-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')
-rw-r--r--gfx/gl/shader.cpp4
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;
});