diff --git a/TPL.py b/TPL.py index 95e0a55..1b276fc 100644 --- a/TPL.py +++ b/TPL.py @@ -538,7 +538,7 @@ class TPL(): for k in xrange(2): for l in xrange(i, i + 4, 1): for m in xrange(j, j + 4, 1): - texel = Struct.uint16(data[inp*2:inp*2+2]) + texel = Struct.uint16(data[inp*2:inp*2+2], endian = '>') inp += 1 if (m >= x) or (l >= y): continue