Fix mipmap-related slowdown caused by excessive texture decoding