- added a texture format for single frame ANMs so that they can be handled like normal images.

The intermission code is doing weird things with them that isn't really portable.
This commit is contained in:
Christoph Oelckers 2020-06-28 14:41:44 +02:00
parent 924816ac8d
commit 2ddec37098
9 changed files with 185 additions and 6 deletions

View file

@ -78,7 +78,8 @@ DEFINE_ACTION_FUNCTION(_TexMan, GetName)
static int CheckForTexture(const FString& name, int type, int flags)
{
return TexMan.CheckForTexture(name, static_cast<ETextureType>(type), flags).GetIndex();
// ForceLookup is intentionally blocked here, this flag is for internal use only.
return TexMan.CheckForTexture(name, static_cast<ETextureType>(type), (flags & ~FTextureManager::TEXMAN_ForceLookup)).GetIndex();
}
DEFINE_ACTION_FUNCTION_NATIVE(_TexMan, CheckForTexture, CheckForTexture)