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); GetDevice()->GetImmediateContext(&context);
context->CopyResource(unityTexture_, frame.texture.Get()); context->CopyResource(unityTexture_, frame.texture.Get());
auto cursor = GetMonitorManager()->GetCursor(); auto& manager = GetMonitorManager();
cursor->Draw(unityTexture_); if (id_ == manager->GetCursorMonitorId())
{
manager->GetCursor()->Draw(unityTexture_);
}
} }
} }