X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture.cpp;h=9d76e0626bff7818015bfbdc0b6e7d0b2244c2f0;hp=719d4a56ac029218cbd176ac076644865fc20c72;hb=2c097a6afe55d7be2e52cee75403b09043057b0d;hpb=f89300d4264069e50a42c7e26b428957e750b437 diff --git a/source/texture.cpp b/source/texture.cpp index 719d4a56..9d76e062 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -423,6 +423,8 @@ void Texture::Loader::external_image(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); obj.image(img, srgb);