Merge branch 'remove-assert' of https://github.com/rombankzero/stb into working

This commit is contained in:
Sean Barrett 2019-02-07 07:39:03 -08:00
commit 0aa5984b6a

View File

@ -541,9 +541,6 @@ STBRP_DEF int stbrp_pack_rects(stbrp_context *context, stbrp_rect *rects, int nu
// we use the 'was_packed' field internally to allow sorting/unsorting
for (i=0; i < num_rects; ++i) {
rects[i].was_packed = i;
#ifndef STBRP_LARGE_RECTS
STBRP_ASSERT(rects[i].w <= 0xffff && rects[i].h <= 0xffff);
#endif
}
// sort according to heuristic