BitmapPacker wrong Texture on iOS (#323), fixes #322

This commit is contained in:
Longri 2017-03-05 14:22:36 +01:00 committed by Emux
parent 320ce5b44d
commit ca56e0fe33

View File

@ -69,7 +69,7 @@ public class BitmapPacker {
int rectX = rect.x, rectY = rect.y, rectWidth = rect.width, rectHeight = rect.height;
packerAtlasItem.drawBitmap(image, rectX,
flipY ? packerAtlasItem.image.getHeight() - rectY : rectY);
flipY ? packerAtlasItem.image.getHeight() - rectY - rectHeight : rectY);
return rect;
}