mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-12-01 18:15:41 +00:00
ImGuiFullscreen: Don't upload failed-loaded images
This commit is contained in:
parent
afea18f65e
commit
ff77bd029f
|
@ -295,7 +295,10 @@ std::optional<RGBA8Image> ImGuiFullscreen::LoadTextureImage(std::string_view pat
|
||||||
{
|
{
|
||||||
image = RGBA8Image();
|
image = RGBA8Image();
|
||||||
if (!image->LoadFromFile(path_str.c_str(), fp.get()))
|
if (!image->LoadFromFile(path_str.c_str(), fp.get()))
|
||||||
|
{
|
||||||
ERROR_LOG("Failed to read texture file '{}'", path);
|
ERROR_LOG("Failed to read texture file '{}'", path);
|
||||||
|
image.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue