ImGuiFullscreen: Don't upload failed-loaded images

This commit is contained in:
Stenzek 2024-07-14 00:01:06 +10:00
parent afea18f65e
commit ff77bd029f
No known key found for this signature in database

View file

@ -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
{