LOOM-1545: Generate mip maps on Direct3D9