From 9c2dcdaa073cbc8c98fec4f578e51781e294af57 Mon Sep 17 00:00:00 2001 From: WangGuobao Date: Fri, 15 Mar 2019 12:52:10 +0800 Subject: [PATCH] fix build error for win --- modules/core/src/directx.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/core/src/directx.cpp b/modules/core/src/directx.cpp index 1ec575a710..9a2251aaac 100644 --- a/modules/core/src/directx.cpp +++ b/modules/core/src/directx.cpp @@ -1266,11 +1266,12 @@ void convertToD3D11Texture2D(InputArray src, ID3D11Texture2D* pD3D11Texture2D) if(!useCLNVEXT){ __convertToD3D11Texture2DKHR(src,pD3D11Texture2D); } +#ifdef HAVE_OPENCL_D3D11_NV else { __convertToD3D11Texture2DNV(src,pD3D11Texture2D); } - +#endif #endif } @@ -1287,11 +1288,12 @@ void convertFromD3D11Texture2D(ID3D11Texture2D* pD3D11Texture2D, OutputArray dst if(!useCLNVEXT){ __convertFromD3D11Texture2DKHR(pD3D11Texture2D,dst); } +#ifdef HAVE_OPENCL_D3D11_NV else { __convertFromD3D11Texture2DNV(pD3D11Texture2D,dst); } - +#endif #endif }