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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user