fix bug that drew cursor on all monitors.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user