mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +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 STDMETHODCALLTYPE D3D11SwapChain::GetFrameLatencyEvent() {
|
||||||
HANDLE result = nullptr;
|
HANDLE result = nullptr;
|
||||||
|
HANDLE processHandle = GetCurrentProcess();
|
||||||
|
|
||||||
if (!m_processHandle)
|
if (!DuplicateHandle(processHandle, m_frameLatencyEvent,
|
||||||
m_processHandle = GetCurrentProcess();
|
processHandle, &result, 0, FALSE, DUPLICATE_SAME_ACCESS)) {
|
||||||
|
|
||||||
if (!DuplicateHandle(m_processHandle, m_frameLatencyEvent,
|
|
||||||
m_processHandle, &result, 0, FALSE, DUPLICATE_SAME_ACCESS)) {
|
|
||||||
Logger::err("DxgiSwapChain::GetFrameLatencyWaitableObject: DuplicateHandle failed");
|
Logger::err("DxgiSwapChain::GetFrameLatencyWaitableObject: DuplicateHandle failed");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -122,8 +122,6 @@ namespace dxvk {
|
|||||||
HANDLE m_frameLatencyEvent = nullptr;
|
HANDLE m_frameLatencyEvent = nullptr;
|
||||||
Rc<sync::CallbackFence> m_frameLatencySignal;
|
Rc<sync::CallbackFence> m_frameLatencySignal;
|
||||||
|
|
||||||
HANDLE m_processHandle = nullptr;
|
|
||||||
|
|
||||||
bool m_dirty = true;
|
bool m_dirty = true;
|
||||||
|
|
||||||
VkColorSpaceKHR m_colorspace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
|
VkColorSpaceKHR m_colorspace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user