mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 14:52:10 +01:00
[d3d11] Do not cache GetCurrentProcess result
This is just a constant.
This commit is contained in:
parent
4893788d9b
commit
c599f95e5d
@ -161,12 +161,10 @@ namespace dxvk {
|
||||
|
||||
HANDLE STDMETHODCALLTYPE D3D11SwapChain::GetFrameLatencyEvent() {
|
||||
HANDLE result = nullptr;
|
||||
HANDLE processHandle = GetCurrentProcess();
|
||||
|
||||
if (!m_processHandle)
|
||||
m_processHandle = GetCurrentProcess();
|
||||
|
||||
if (!DuplicateHandle(m_processHandle, m_frameLatencyEvent,
|
||||
m_processHandle, &result, 0, FALSE, DUPLICATE_SAME_ACCESS)) {
|
||||
if (!DuplicateHandle(processHandle, m_frameLatencyEvent,
|
||||
processHandle, &result, 0, FALSE, DUPLICATE_SAME_ACCESS)) {
|
||||
Logger::err("DxgiSwapChain::GetFrameLatencyWaitableObject: DuplicateHandle failed");
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -122,8 +122,6 @@ namespace dxvk {
|
||||
HANDLE m_frameLatencyEvent = nullptr;
|
||||
Rc<sync::CallbackFence> m_frameLatencySignal;
|
||||
|
||||
HANDLE m_processHandle = nullptr;
|
||||
|
||||
bool m_dirty = true;
|
||||
|
||||
VkColorSpaceKHR m_colorspace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user