qbsp: never write <3 vertex faces

This commit is contained in:
Eric Wasylishen 2024-01-25 17:49:07 -07:00
parent 5eb5d2862d
commit 6396f87e15
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }