mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-08 16:52:01 +00:00
- avoid infinite portal recursion.
This commit is contained in:
parent
d388d19793
commit
31d8a23046
1 changed files with 5 additions and 0 deletions
|
@ -779,6 +779,11 @@ void HWSectorStackPortal::SetupCoverage(HWDrawInfo *di)
|
|||
bool HWSectorStackPortal::Setup(HWDrawInfo *di, FRenderState &rstate, Clipper *clipper)
|
||||
{
|
||||
auto state = mState;
|
||||
if (state->renderdepth > 100) // energency abort in case a map manages to set up a recursion.
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
FSectorPortalGroup *portal = origin;
|
||||
auto &vp = di->Viewpoint;
|
||||
|
||||
|
|
Loading…
Reference in a new issue