mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 05:52:11 +01:00
[d3d11] Stub out OpenSharedResourceGeneric on non-Windows
This commit is contained in:
parent
be33ccbce9
commit
801d97806d
@ -2256,6 +2256,7 @@ namespace dxvk {
|
|||||||
if (ppResource == nullptr)
|
if (ppResource == nullptr)
|
||||||
return S_FALSE;
|
return S_FALSE;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
HANDLE ntHandle = IsKmtHandle ? openKmtHandle(hResource) : hResource;
|
HANDLE ntHandle = IsKmtHandle ? openKmtHandle(hResource) : hResource;
|
||||||
|
|
||||||
if (ntHandle == INVALID_HANDLE_VALUE) {
|
if (ntHandle == INVALID_HANDLE_VALUE) {
|
||||||
@ -2298,6 +2299,10 @@ namespace dxvk {
|
|||||||
Logger::err(e.message());
|
Logger::err(e.message());
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
Logger::warn("D3D11Device::OpenSharedResourceGeneric: Not supported on this platform.");
|
||||||
|
return E_INVALIDARG;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user