(GLES) grTexDownloadMipmap - non-packed pixel codepath - turn double
for loops into do-while ones