diff --git a/Source/Core/VideoCommon/OnScreenDisplay.cpp b/Source/Core/VideoCommon/OnScreenDisplay.cpp index 5d9d90b95b..cc7fa6e22b 100644 --- a/Source/Core/VideoCommon/OnScreenDisplay.cpp +++ b/Source/Core/VideoCommon/OnScreenDisplay.cpp @@ -116,7 +116,8 @@ static float DrawMessage(int index, Message& msg, const ImVec2& position, int ti } // Use %s in case message contains %. - ImGui::TextColored(ARGBToImVec4(msg.color), "%s", msg.text.c_str()); + if (msg.text.size() > 0) + ImGui::TextColored(ARGBToImVec4(msg.color), "%s", msg.text.c_str()); window_height = ImGui::GetWindowSize().y + (WINDOW_PADDING * ImGui::GetIO().DisplayFramebufferScale.y); }