Commit 47afa9d5 authored by nukeykt's avatar nukeykt

Polymost: add invalid polygon check in editor mode

parent f21351f0
......@@ -3082,7 +3082,7 @@ static void polymost_identityrotmat(void)
static void polymost_polyeditorfunc(vec2f_t const * const dpxy, int n)
{
if (!doeditorcheck)
if (!doeditorcheck || n < 3)
return;
for (int i = 0; i < n; i++)
......@@ -3140,6 +3140,8 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32
if (f <= 0) return;
}
else if (n < 3)
return;
static int32_t skyzbufferhack_pass = 0;
if (flatskyrender && skyzbufferhack_pass == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment