- parched the texture precaching so that it compiles and works again. The real work will come later.

This commit is contained in:
Christoph Oelckers 2016-05-02 00:13:00 +02:00
commit f2f3fa6d09
3 changed files with 81 additions and 31 deletions

View file

@ -322,36 +322,6 @@ int OpenGLFrameBuffer::GetPageCount()
}
void OpenGLFrameBuffer::GetHitlist(BYTE *hitlist)
{
Super::GetHitlist(hitlist);
// check skybox textures and mark the separate faces as used
for(int i=0;i<TexMan.NumTextures(); i++)
{
// HIT_Wall must be checked for MBF-style sky transfers.
if (hitlist[i] & (FTextureManager::HIT_Sky|FTextureManager::HIT_Wall))
{
FTexture *tex = TexMan.ByIndex(i);
if (tex->gl_info.bSkybox)
{
FSkyBox *sb = static_cast<FSkyBox*>(tex);
for(int i=0;i<6;i++)
{
if (sb->faces[i])
{
int index = sb->faces[i]->id.GetIndex();
hitlist[index] |= FTextureManager::HIT_Flat;
}
}
}
}
}
// check model skins
}
//==========================================================================
//
// DFrameBuffer :: CreatePalette