fix bug that drew cursor on all monitors.

This commit is contained in:
hecomi
2017-01-08 00:38:01 +09:00
parent a0ca46630e
commit c20c09e275
3 changed files with 5 additions and 2 deletions
@@ -94,8 +94,11 @@ void Monitor::Render()
GetDevice()->GetImmediateContext(&context);
context->CopyResource(unityTexture_, frame.texture.Get());
auto cursor = GetMonitorManager()->GetCursor();
cursor->Draw(unityTexture_);
auto& manager = GetMonitorManager();
if (id_ == manager->GetCursorMonitorId())
{
manager->GetCursor()->Draw(unityTexture_);
}
}
}