Fix sigsegv when there is no main skybox viewpoint.
This commit is contained in:
parent
1c14062e8b
commit
5284817259
|
@ -1071,7 +1071,7 @@ void R_RenderPlayerView(player_t *player)
|
||||||
//profile stuff ---------------------------------------------------------
|
//profile stuff ---------------------------------------------------------
|
||||||
|
|
||||||
// Add skybox portals caused by sky visplanes.
|
// Add skybox portals caused by sky visplanes.
|
||||||
if (cv_skybox.value)
|
if (cv_skybox.value && skyboxmo[0])
|
||||||
Portal_AddSkyboxPortals();
|
Portal_AddSkyboxPortals();
|
||||||
|
|
||||||
// Portal rendering. Hijacks the BSP traversal.
|
// Portal rendering. Hijacks the BSP traversal.
|
||||||
|
|
Loading…
Reference in a new issue