Skip to content
Myr

stb_rect_pack: Remove always-true assert

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by rombankzero · committed by rombankzero · parent e6afb9c · Browse files · 1 file+0 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−3 removed

  • other:+0 added−3 removed

1 file+0 added−3 removed

modified:stb_rect_pack.h-3 removed
542 unmodified lines
543544 // we use the 'was_packed' field internally to allow sorting/unsorting545 for (i=0; i < num_rects; ++i) {546 rects[i].was_packed = i;547 #ifndef STBRP_LARGE_RECTS548 STBRP_ASSERT(rects[i].w <= 0xffff && rects[i].h <= 0xffff);549 #endif547 }548549 // sort according to heuristic550 STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare);
71 unmodified lines