mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 19:40:43 +00:00
- fixed loop in ProcessBunch to account for array reallocation.
This commit is contained in:
parent
df6a9823e3
commit
325af156e7
1 changed files with 4 additions and 1 deletions
|
@ -275,10 +275,13 @@ int BunchDrawer::ClipLine(int aline, bool portal)
|
|||
void BunchDrawer::ProcessBunch(int bnch)
|
||||
{
|
||||
FBunch* bunch = &Bunches[bnch];
|
||||
int start = bunch->startline;
|
||||
int end = bunch->endline;
|
||||
|
||||
ClipWall.Clock();
|
||||
for (int i = bunch->startline; i <= bunch->endline; i++)
|
||||
for (int i = start; i <= end; i++)
|
||||
{
|
||||
bunch = &Bunches[bnch]; // re-get the pointer in case of reallocation.
|
||||
int clipped = ClipLine(i, bunch->portal);
|
||||
|
||||
if (clipped & CL_Draw)
|
||||
|
|
Loading…
Reference in a new issue