PixelStore pstore = PixelStore::from_image(img);
BindRestore _bind_ps(pstore);
- layer_image(level, z, img.get_data());
+ layer_image(level, z, img.get_pixels());
}
void Texture2DArray::Loader::external_image(unsigned z, const string &fn)
{
Graphics::Image img;
- RefPtr<IO::Seekable> io = get_collection().open_raw(fn);
- if(!io)
- throw IO::file_not_found(fn);
- img.load_io(*io);
-
+ load_external_image(img, fn);
obj.layer_image(0, z, img);
}