master
rexim 2020-02-03 04:59:18 +07:00
parent 73145fa2f0
commit cb9e37ab02
1 changed files with 1 additions and 0 deletions

View File

@ -505,6 +505,7 @@ static
void push_geometry(Geometry *geometry, Rect rect, Color color)
{
assert(geometry);
// TODO(#1252): push_geometry may fail if there is too many rects produced
assert(geometry->count < GEOMETRY_CAPACITY);
if ((rect.w * rect.h) > 1e-6f) {