check cursor visibility before drawing it.

This commit is contained in:
hecomi
2019-01-04 21:41:51 +09:00
parent bcce6d5749
commit 0329eef501
3 changed files with 7 additions and 1 deletions
@@ -124,7 +124,13 @@ void Monitor::Render()
auto& manager = GetMonitorManager();
if (id_ == manager->GetCursorMonitorId())
{
manager->GetCursor()->Draw(unityTexture_);
if (auto cursor = manager->GetCursor())
{
if (cursor->IsVisible())
{
cursor->Draw(unityTexture_);
}
}
}
}