mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-12 04:35:45 -04:00
ImGuiFullscreen: Don't upload failed-loaded images
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user