From f65ed67e89531c9ff6b36cf8974b0d9908a782cd Mon Sep 17 00:00:00 2001 From: rombankzero Date: Thu, 21 Jun 2018 16:51:30 +0300 Subject: [PATCH] stb_rect_pack: Remove always-true assert --- stb_rect_pack.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/stb_rect_pack.h b/stb_rect_pack.h index 9faf578..80a7d41 100644 --- a/stb_rect_pack.h +++ b/stb_rect_pack.h @@ -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