fixed texture packer not trimming properly

This commit is contained in:
Noel Berry 2021-01-19 00:06:22 -08:00
parent e9d678d880
commit add76cd968

View File

@ -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)); Entry entry(id, RectI(0, 0, w, h));
// trim // trim
int top = 0, left = 0, right = w, bottom = h; int top = 0, left = 0, right = 0, bottom = 0;
// TOP: // TOP:
for (int y = 0; y < h; y++) for (int y = 0; y < h; y++)