From a4e312da43cb5be9d39fa6e011ef8763f34a251f Mon Sep 17 00:00:00 2001 From: Jeff Bloomfield Date: Sun, 19 Apr 2020 11:52:41 -0700 Subject: [PATCH] Fix build error in D3DDeviceCache.cpp --- winml/lib/Api.Image/D3DDeviceCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winml/lib/Api.Image/D3DDeviceCache.cpp b/winml/lib/Api.Image/D3DDeviceCache.cpp index 1aedd23709..21d46c9317 100644 --- a/winml/lib/Api.Image/D3DDeviceCache.cpp +++ b/winml/lib/Api.Image/D3DDeviceCache.cpp @@ -63,7 +63,7 @@ D3DDeviceCache::D3DDeviceCache(winml::LearningModelDeviceKind const& deviceKind) } #ifdef ENABLE_DXCORE if (support.has_dxgi == false) { - com_ptr spAdapter; + winrt::com_ptr spAdapter; WINML_THROW_IF_FAILED_MSG(GetDXCoreHardwareAdapterWithPreference(preference, spAdapter.put()), errStr); WINML_THROW_IF_FAILED(D3D12CreateDevice(spAdapter.get(), D3D_FEATURE_LEVEL_11_0, IID_PPV_ARGS(device_.put()))); }