stb_rect_pack: Remove always-true assert

This commit is contained in:
rombankzero 2018-06-21 16:51:30 +03:00
parent e6afb9cbae
commit f65ed67e89

View File

@ -544,9 +544,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