diff --git a/src/util/imgui_fullscreen.cpp b/src/util/imgui_fullscreen.cpp index 503d46351..1ce43a8ff 100644 --- a/src/util/imgui_fullscreen.cpp +++ b/src/util/imgui_fullscreen.cpp @@ -295,7 +295,10 @@ std::optional 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 {