Merge pull request #3700 from degasus/custom_textures CustomTextures: Fix loading of the last mipmaps.