X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2darray.cpp;h=1a085ed8e73bbe6c89c5361b7839a5fe32180c32;hp=4123f0e2906e261b64fe0227c27894a00f8c7a09;hb=03d3984ecd2c4e7c38b6a62b4b7a81bab69f8d40;hpb=af38b327d25410b87084fe937b311ebde1ba6c5d diff --git a/source/texture2darray.cpp b/source/texture2darray.cpp index 4123f0e2..1a085ed8 100644 --- a/source/texture2darray.cpp +++ b/source/texture2darray.cpp @@ -64,6 +64,8 @@ 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); obj.layer_image(0, z, img);