mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 13:31:07 +00:00
- added skybox cast for GL code.
This commit is contained in:
parent
0a539ed2d5
commit
bd67f3b3e5
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ static void CollectPortalSectors(FPortalMap &collection)
|
|||
sector_t *sec = §ors[i];
|
||||
for (int j = 0; j < 2; j++)
|
||||
{
|
||||
ASkyViewpoint *SkyBox = sec->SkyBoxes[j];
|
||||
ASkyViewpoint *SkyBox = barrier_cast<ASkyViewpoint*>(sec->SkyBoxes[j]);
|
||||
if (SkyBox != NULL && SkyBox->bAlways && SkyBox->Mate != NULL)
|
||||
{
|
||||
FPortalID id = { SkyBox->X() - SkyBox->Mate->X(), SkyBox->Y() - SkyBox->Mate->Y() };
|
||||
|
|
Loading…
Reference in a new issue