mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25: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();
|
||||
if (!image->LoadFromFile(path_str.c_str(), fp.get()))
|
||||
{
|
||||
ERROR_LOG("Failed to read texture file '{}'", path);
|
||||
image.reset();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue