From add76cd96816138034c42537b5ed5067ab8b4287 Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Tue, 19 Jan 2021 00:06:22 -0800 Subject: [PATCH] fixed texture packer not trimming properly --- src/images/packer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/images/packer.cpp b/src/images/packer.cpp index 623c99a..77fc1c2 100644 --- a/src/images/packer.cpp +++ b/src/images/packer.cpp @@ -63,7 +63,7 @@ void Packer::add_entry(uint64_t id, int w, int h, const Color* pixels) Entry entry(id, RectI(0, 0, w, h)); // trim - int top = 0, left = 0, right = w, bottom = h; + int top = 0, left = 0, right = 0, bottom = 0; // TOP: for (int y = 0; y < h; y++)