mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- avoid calling the node builder to triangulate degenerate sectors.
This tends to crash.
This commit is contained in:
parent
9680674dec
commit
5d3f7947bf
1 changed files with 2 additions and 2 deletions
|
@ -463,9 +463,9 @@ bool SectorGeometry::MakeVertices2(unsigned int secnum, int plane, const FVector
|
||||||
nexti:;
|
nexti:;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lines.Size() == 0)
|
if (lines.Size() < 4)
|
||||||
{
|
{
|
||||||
// nothing to generate.
|
// nothing to generate. If line count is < 4 this sector is degenerate and should not be processed further.
|
||||||
auto& entry = data[secnum].planes[plane];
|
auto& entry = data[secnum].planes[plane];
|
||||||
entry.vertices.Clear();
|
entry.vertices.Clear();
|
||||||
entry.texcoords.Clear();
|
entry.texcoords.Clear();
|
||||||
|
|
Loading…
Reference in a new issue