- 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:
parent
ebbe9c84f8
commit
465bcfd199
5 changed files with 29 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue