- use TEXMAN_ForceLookup where it was missing.

This commit is contained in:
Christoph Oelckers 2022-12-08 12:43:37 +01:00
parent c1abd6fe22
commit 3874cf365c
3 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,7 @@ FTextureID LoadSkin(const char * path, const char * fn)
int texlump = FindGFXFile(buffer);
const char * const texname = texlump < 0 ? fn : fileSystem.GetFileFullName(texlump);
return TexMan.CheckForTexture(texname, ETextureType::Any, FTextureManager::TEXMAN_TryAny);
return TexMan.CheckForTexture(texname, ETextureType::Any, FTextureManager::TEXMAN_TryAny | FTextureManager::TEXMAN_ForceLookup);
}
//===========================================================================

View file

@ -125,7 +125,7 @@ int ModelManager::DefineSkin(int modelid, const char* skinfn, int palnum, int sk
skdef->param = param;
skdef->specpower = specpower;
skdef->specfactor = specfactor;
skdef->texture = TexMan.CheckForTexture(skinfn, ETextureType::Any);
skdef->texture = TexMan.CheckForTexture(skinfn, ETextureType::Any, FTextureManager::TEXMAN_ForceLookup | FTextureManager::TEXMAN_TryAny);
if (!skdef->texture.isValid()) return -2;
return 0;
}

View file

@ -299,7 +299,7 @@ int tileSetSkybox(int picnum, int palnum, FString* facenames, bool indexed)
FGameTexture *faces[6];
for (int i = 0; i < 6; i++)
{
FTextureID texid = TexMan.CheckForTexture(facenames[i], ETextureType::Any, FTextureManager::TEXMAN_ForceLookup);
FTextureID texid = TexMan.CheckForTexture(facenames[i], ETextureType::Any, FTextureManager::TEXMAN_TryAny | FTextureManager::TEXMAN_ForceLookup);
if (!texid.isValid())
{
Printf("%s: Skybox image for tile %d does not exist or is invalid\n", facenames[i].GetChars(), picnum);