1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-20 18:09:53 +00:00

svg:: do not draw if any points are bad

This commit is contained in:
Zeno Rogue
2025-12-05 11:11:20 +01:00
parent 6979d1dab5
commit 7fb8c25483

View File

@@ -2121,6 +2121,10 @@ void dqi_poly::draw() {
#if CAP_SVG
if(svg::in) {
bool bad = false;
for(int i=0; i<polyi; i++) if(isnan(glcoords[i][0]) || isnan(glcoords[i][1]) || isnan(glcoords[i][2])) bad = true;
if(bad) continue;
coords_to_poly();
color_t col = color;
if(poly_flags & POLY_INVERSE) col = 0;