[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().
This commit is contained in:
Paul Gofman 2023-07-05 18:10:08 -06:00 committed by Philip Rebohle
parent 886268fcf9
commit 8319793a98
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}