summaryrefslogtreecommitdiffhomepage
path: root/src/external/stb_rect_pack.h
diff options
context:
space:
mode:
authorRay <[email protected]>2019-02-12 00:25:21 +0100
committerRay <[email protected]>2019-02-12 00:25:21 +0100
commitd00b8f9ffc7c83bd9a5089a6b94e74400b72c0be (patch)
treed588600ba397752c5191098399e8b41a53923f44 /src/external/stb_rect_pack.h
parente996fe2ff511a60ac67b56996ac04a7e69fe8a69 (diff)
downloadraylib-d00b8f9ffc7c83bd9a5089a6b94e74400b72c0be.tar.gz
raylib-d00b8f9ffc7c83bd9a5089a6b94e74400b72c0be.zip
Updated external libraries
Diffstat (limited to 'src/external/stb_rect_pack.h')
-rw-r--r--src/external/stb_rect_pack.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/external/stb_rect_pack.h b/src/external/stb_rect_pack.h
index 9faf5783..3632c85a 100644
--- a/src/external/stb_rect_pack.h
+++ b/src/external/stb_rect_pack.h
@@ -1,4 +1,4 @@
-// stb_rect_pack.h - v0.11 - public domain - rectangle packing
+// stb_rect_pack.h - v0.99 - public domain - rectangle packing
// Sean Barrett 2014
//
// Useful for e.g. packing rectangular textures into an atlas.
@@ -34,6 +34,7 @@
//
// Version history:
//
+// 0.99 (2019-02-07) warning fixes
// 0.11 (2017-03-03) return packing success/fail result
// 0.10 (2016-10-25) remove cast-away-const to avoid warnings
// 0.09 (2016-08-27) fix compiler warnings
@@ -492,17 +493,14 @@ static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context *context, i
STBRP_ASSERT(cur->next == NULL);
{
- stbrp_node *L1 = NULL, *L2 = NULL;
int count=0;
cur = context->active_head;
while (cur) {
- L1 = cur;
cur = cur->next;
++count;
}
cur = context->free_head;
while (cur) {
- L2 = cur;
cur = cur->next;
++count;
}
@@ -544,9 +542,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