X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2darray.cpp;fp=source%2Ftexture2darray.cpp;h=4d37263c76b75c59ddb06f5e03d6e0096cd43439;hp=c080481b106590f5a6a159be78ad1618142cf85f;hb=99e833421259dd90b164a9c49d63c936c343c65f;hpb=42293e1bd6f3d6297a1d0207ca69e7864a7d76e8 diff --git a/source/texture2darray.cpp b/source/texture2darray.cpp index c080481b..4d37263c 100644 --- a/source/texture2darray.cpp +++ b/source/texture2darray.cpp @@ -72,11 +72,7 @@ void Texture2DArray::Loader::init() void Texture2DArray::Loader::external_image(unsigned z, const string &fn) { Graphics::Image img; - RefPtr 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); }