- Added a PrecacheTexture virtual function to DFrameBuffer because it's the

renderer which should decide how to precache a texture.


SVN r723 (trunk)
This commit is contained in:
Christoph Oelckers 2008-01-28 10:23:18 +00:00
commit 465bcfd199
5 changed files with 29 additions and 14 deletions

View file

@ -485,18 +485,7 @@ void R_PrecacheLevel (void)
for (i = TexMan.NumTextures() - 1; i >= 0; i--)
{
FTexture *tex = TexMan[i];
if (tex != NULL)
{
if (hitlist[i])
{
tex->GetPixels ();
}
else
{
tex->Unload ();
}
}
screen->PrecacheTexture(TexMan[i], !!hitlist[i]);
}
delete[] hitlist;