From e3e23a2c844aca0dbb51342a9b284bed6f3b4e5b Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 15 Feb 2022 02:26:46 +0900 Subject: [PATCH] d3d11converter: Fix RGB to GRAY conversion Fix typo in shader code Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11converter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11converter.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11converter.cpp index 1d22a00978..e995d0617f 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11converter.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11converter.cpp @@ -291,7 +291,7 @@ static const gchar templ_PACKED_YUV_TO_SEMI_PLANAR_CHROMA_BODY[] = static const gchar templ_RGB_to_GRAY_BODY[] = " float4 sample, rgba;\n" " rgba.rgb = shaderTexture[0].Sample(samplerState, input.Texture).rgb;\n" - " sample.x = rgb_to_yuv (sample.rgb).x;\n" + " sample.x = rgb_to_yuv (rgba.rgb).x;\n" " sample.y = 0.0;\n" " sample.z = 0.0;\n" " sample.a = 0.0;\n"