diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index d05e99cc4..3f693f84e 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -2256,6 +2256,7 @@ namespace dxvk { if (ppResource == nullptr) return S_FALSE; +#ifdef _WIN32 HANDLE ntHandle = IsKmtHandle ? openKmtHandle(hResource) : hResource; if (ntHandle == INVALID_HANDLE_VALUE) { @@ -2298,6 +2299,10 @@ namespace dxvk { Logger::err(e.message()); return E_INVALIDARG; } +#else + Logger::warn("D3D11Device::OpenSharedResourceGeneric: Not supported on this platform."); + return E_INVALIDARG; +#endif }