[DF-2740] Small fix in mipmaps generation
Merge branch 'generate_mipmaps' into feature-integration-new-materials