diff options
author | Paul Gofman <pgofman@codeweavers.com> | 2023-07-06 03:10:08 +0300 |
---|---|---|
committer | Philip Rebohle <25567304+doitsujin@users.noreply.github.com> | 2023-07-16 16:34:39 +0300 |
commit | 8319793a985445d9b2fa4b585188fd2ccc9a14f2 (patch) | |
tree | 26fdfaf0b8b42a5132436847850114739b484557 | |
parent | 886268fcf940e5d8357066568c7257a7ec895b2a (diff) |
[d3d11] Always close handle in D3D11CommonTexture::ExportImageInfo()
For KMT handle openKmtHandle() creates new handle, for NT handle
m_image->sharedHandle() gets duplicated handle from
vkGetMemoryWin32HandleKHR().
-rw-r--r-- | src/d3d11/d3d11_texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/d3d11/d3d11_texture.cpp b/src/d3d11/d3d11_texture.cpp index b6f7d92a..875b6165 100644 --- a/src/d3d11/d3d11_texture.cpp +++ b/src/d3d11/d3d11_texture.cpp @@ -719,7 +719,7 @@ namespace dxvk { Logger::warn("D3D11: Failed to write shared resource info for a texture"); } - if ((m_desc.MiscFlags & D3D11_RESOURCE_MISC_SHARED) && hSharedHandle != INVALID_HANDLE_VALUE) + if (hSharedHandle != INVALID_HANDLE_VALUE) CloseHandle(hSharedHandle); } |