mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[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:
parent
886268fcf9
commit
8319793a98
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue