Skip to content

Commit 5c0a287

Browse files
committed
build: fix warning
C4189: 'clImageUV' : local variable is initialized but not referenced
1 parent 781515c commit 5c0a287

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/core/src/directx.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,9 @@ void convertToD3D11Texture2D(InputArray src, ID3D11Texture2D* pD3D11Texture2D)
794794

795795
cl_int status = 0;
796796
cl_mem clImage = 0;
797+
#ifdef HAVE_DIRECTX_NV12
797798
cl_mem clImageUV = 0;
799+
#endif
798800

799801
clImage = clCreateFromD3D11Texture2DKHR(context, CL_MEM_WRITE_ONLY, pD3D11Texture2D, 0, &status);
800802
if (status != CL_SUCCESS)

0 commit comments

Comments
 (0)