Invalid surface.DrawPoly call breaks subsequent polygons

The17thDoctor reported that a surface.DrawPoly() call with fewer than 3 vertices in PostDrawOpaqueRenderables breaks later calls in the same hook.

Updates

  • : robotboy655: "Made it throw an error when giving it less than 3 verts" (commit 185851).
  • : The change reached the x86-64 beta in commit bb0975; addons drawing invalid polygons now error (see the Discord item about DrawPoly errors).