qbsp: never write <3 vertex faces
This commit is contained in:
parent
5eb5d2862d
commit
6396f87e15
|
|
@ -192,8 +192,8 @@ static void EmitFaceFragment(face_t *face, face_fragment_t *fragment, emit_faces
|
||||||
{
|
{
|
||||||
// this can't really happen, but just in case it ever does..
|
// this can't really happen, but just in case it ever does..
|
||||||
// (I use this in testing to find faces of interest)
|
// (I use this in testing to find faces of interest)
|
||||||
if (!fragment->output_vertices.size()) {
|
if (fragment->output_vertices.size() < 3) {
|
||||||
logging::print("WARNING: zero-point triangle attempted to be emitted\n");
|
logging::print("WARNING: {}-point face attempted to be emitted\n", fragment->output_vertices.size());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue