* this is required for pregenerated mipmaps in e.g. DDS files * others checks are added to make sure a zero-length buffer cannot be uploaded (that's an error for now)