- 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

View file

@ -332,7 +332,8 @@ void OpenGLFrameBuffer::GetHitlist(BYTE *hitlist)
// check skybox textures and mark the separate faces as used // check skybox textures and mark the separate faces as used
for(int i=0;i<TexMan.NumTextures(); i++) 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); FTexture *tex = TexMan.ByIndex(i);
if (tex->gl_info.bSkybox) if (tex->gl_info.bSkybox)