Reduce High Mips request size

This commit is contained in:
Atlante45 2017-04-26 16:23:09 -07:00
parent c7ac82b4e2
commit 19d5414c30

View file

@ -422,9 +422,10 @@ void NetworkTexture::startMipRangeRequest(uint16_t low, uint16_t high) {
_ktxMipLevelRangeInFlight = { low, high }; _ktxMipLevelRangeInFlight = { low, high };
if (isHighMipRequest) { if (isHighMipRequest) {
static const int HIGH_MIP_MAX_SIZE = 5516;
// This is a special case where we load the high 7 mips // This is a special case where we load the high 7 mips
ByteRange range; ByteRange range;
range.fromInclusive = -15000; range.fromInclusive = -HIGH_MIP_MAX_SIZE;
_ktxMipRequest->setByteRange(range); _ktxMipRequest->setByteRange(range);
} else { } else {
ByteRange range; ByteRange range;