some more work on the call stack of the visual component
This commit is contained in:
parent
dd908ead95
commit
70424c8819
15 changed files with 136 additions and 55 deletions
|
@ -18,8 +18,7 @@ struct image_io::impl
|
|||
image read_impl(const std::string& uri,uint32_t flags)
|
||||
{
|
||||
int x,y,n;
|
||||
|
||||
unsigned char *data = stbi_load(uri.c_str(), &x, &y, &n, 4);
|
||||
auto data = stbi_load(uri.c_str(), &x, &y, &n, 4);
|
||||
|
||||
if (data) {
|
||||
|
||||
|
@ -30,7 +29,10 @@ struct image_io::impl
|
|||
stbi_image_free(data);
|
||||
|
||||
return r;
|
||||
}
|
||||
} else {
|
||||
|
||||
debug::e() << stbi_failure_reason();
|
||||
}
|
||||
|
||||
return image();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue