projects
/
libs
/
gl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f89300d
)
Check the result of open_raw
author
Mikko Rasa
<tdb@tdb.fi>
Sun, 16 Jun 2019 10:14:55 +0000
(13:14 +0300)
committer
Mikko Rasa
<tdb@tdb.fi>
Sun, 16 Jun 2019 10:14:55 +0000
(13:14 +0300)
source/texture.cpp
patch
|
blob
|
history
diff --git
a/source/texture.cpp
b/source/texture.cpp
index 719d4a56ac029218cbd176ac076644865fc20c72..9d76e0626bff7818015bfbdc0b6e7d0b2244c2f0 100644
(file)
--- 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::Seekable> io = get_collection().open_raw(fn);
+ if(!io)
+ throw IO::file_not_found(fn);
img.load_io(*io);
obj.image(img, srgb);