- consider MBF sky transfers when checking for skybox precaching.

This commit is contained in:
Christoph Oelckers 2015-04-01 12:08:42 +02:00
parent bf490d8dcd
commit 48e21f6759
1 changed files with 2 additions and 1 deletions

View File

@ -332,7 +332,8 @@ void OpenGLFrameBuffer::GetHitlist(BYTE *hitlist)
// check skybox textures and mark the separate faces as used
for(int i=0;i<TexMan.NumTextures(); i++)
{
if (hitlist[i] & FTextureManager::HIT_Sky)
// 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)