mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 15:05:42 -04: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…
x
Reference in New Issue
Block a user