1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Use a more clear error message for clamp wrap mode

This commit is contained in:
Alexei Kotov 2023-10-09 04:33:38 +03:00
parent 575f43876b
commit d2a79c4205

View File

@ -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() }));
}