From 801d97806d04e99e8000fb41e495d65b4346d905 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 21 Aug 2022 19:05:59 +0000 Subject: [PATCH] [d3d11] Stub out OpenSharedResourceGeneric on non-Windows --- src/d3d11/d3d11_device.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 }