From 35994eb5c92f6da3713576a346b0dc5a05766bd1 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 17 Jul 2022 23:58:19 +0900 Subject: [PATCH] d3d11testsrc: Fix SMPTE pattern rendering It was wrong vertex shader code Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.cpp index 9c425454ba..e1002d1cc5 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11testsrc.cpp @@ -564,14 +564,13 @@ setup_smpte_render (GstD3D11TestSrc * self, GstD3D11TestSrcRender * render) input_desc[1].InputSlotClass = D3D11_INPUT_PER_VERTEX_DATA; input_desc[1].InstanceDataStepRate = 0; - hr = gst_d3d11_create_vertex_shader_simple (self->device, templ_vs_coord, + hr = gst_d3d11_create_vertex_shader_simple (self->device, templ_vs_color, "main", input_desc, G_N_ELEMENTS (input_desc), &vs, &layout); if (!gst_d3d11_result (hr, self->device)) { GST_ERROR_OBJECT (self, "Failed to compile vertext shader"); return FALSE; } - hr = gst_d3d11_create_pixel_shader_simple (self->device, templ_ps_smpte, "main", &ps); if (!gst_d3d11_result (hr, self->device)) {