From d2a79c4205d7bb47980a291e83fa77821f459ce6 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Mon, 9 Oct 2023 04:33:38 +0300 Subject: [PATCH] Use a more clear error message for clamp wrap mode --- components/fx/technique.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/fx/technique.cpp b/components/fx/technique.cpp index fd1556674f..0b5d784ad9 100644 --- a/components/fx/technique.cpp +++ b/components/fx/technique.cpp @@ -916,6 +916,11 @@ namespace fx return mode; } + if (asLiteral() == "clamp") + error( + "unsupported wrap mode 'clamp'; 'clamp_to_edge' was likely intended, look for an updated shader or " + "contact author"); + error(Misc::StringUtils::format("unrecognized wrap mode '%s'", std::string{ asLiteral() })); }