- fixed a few things that slipped through
This commit is contained in:
parent
b2281c38e1
commit
d4cc217d42
2 changed files with 3 additions and 3 deletions
|
|
@ -97,7 +97,7 @@ void hw_PrecacheTexture(uint8_t *texhitlist, TMap<PClassActor*, bool> &actorhitl
|
|||
TArray<FTexture*> layers;
|
||||
|
||||
// First collect the potential max. texture set
|
||||
for (unsigned i = 1; i < TexMan.NumTextures(); i++)
|
||||
for (int i = 1; i < TexMan.NumTextures(); i++)
|
||||
{
|
||||
auto gametex = TexMan.GameByIndex(i);
|
||||
if (gametex &&
|
||||
|
|
@ -258,7 +258,7 @@ void hw_PrecacheTexture(uint8_t *texhitlist, TMap<PClassActor*, bool> &actorhitl
|
|||
// delete unused hardware textures (i.e. those which didn't get referenced by any material in the cache list.)
|
||||
decltype(allTextures)::Iterator ita(allTextures);
|
||||
decltype(allTextures)::Pair* paira;
|
||||
while (it.NextPair(pair))
|
||||
while (ita.NextPair(paira))
|
||||
{
|
||||
paira->Key->CleanUnused();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue