1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-06 00:40:04 +00:00

Merge branch 'wrap' into 'master'

Use a more clear error message for clamp wrap mode use (#7487)

Closes #7487

See merge request OpenMW/openmw!3479
This commit is contained in:
AnyOldName3 2023-10-13 16:23:32 +00:00
commit bb6fdc1e21

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