some more work on the call stack of the visual component

This commit is contained in:
Hartmut Seichter 2019-02-24 22:57:06 +01:00
parent dd908ead95
commit 70424c8819
15 changed files with 136 additions and 55 deletions

View file

@ -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();
}