- reverted the change of position where polyobjects get linked to the subsectors.

This commit is contained in:
Christoph Oelckers 2017-03-13 21:16:37 +01:00
parent 3a039b1e44
commit 5141fee8c0
3 changed files with 4 additions and 2 deletions

View file

@ -260,6 +260,7 @@ void GLSceneDrawer::CreateScene()
// reset the portal manager
GLPortal::StartFrame();
PO_LinkToSubsectors();
ProcessAll.Clock();

View file

@ -681,8 +681,6 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
I_Error ("Tried to render from a NULL actor.");
}
PO_LinkToSubsectors();
player_t *player = actor->player;
unsigned int newblend;
InterpolationViewer *iview;

View file

@ -143,6 +143,9 @@ namespace swrenderer
// [RH] Setup particles for this frame
P_FindParticleSubsectors();
// Link the polyobjects right before drawing the scene to reduce the amounts of calls to this function
PO_LinkToSubsectors();
ActorRenderFlags savedflags = MainThread()->Viewport->viewpoint.camera->renderflags;
// Never draw the player unless in chasecam mode
if (!MainThread()->Viewport->viewpoint.showviewer)