From 18e13404a26a42e257a152403890268d6ebfc0fc Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 19 Dec 2019 22:07:42 +0900 Subject: [PATCH] d3d11colorconvert: Use shader resource and render target bind flags together The output of d3d11colorconvert would be used for rendering (i.e., shader resource) --- sys/d3d11/gstd3d11colorconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/d3d11/gstd3d11colorconvert.c b/sys/d3d11/gstd3d11colorconvert.c index c753fe2..743d803 100644 --- a/sys/d3d11/gstd3d11colorconvert.c +++ b/sys/d3d11/gstd3d11colorconvert.c @@ -422,7 +422,7 @@ gst_d3d11_color_convert_decide_allocation (GstBaseTransform * trans, if (!d3d11_params) { d3d11_params = gst_d3d11_allocation_params_new (&info, GST_D3D11_ALLOCATION_FLAG_USE_RESOURCE_FORMAT, D3D11_USAGE_DEFAULT, - D3D11_BIND_RENDER_TARGET); + D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_RENDER_TARGET); } else { /* Set bind flag */ for (i = 0; i < GST_VIDEO_INFO_N_PLANES (&info); i++) { -- 2.7.4