[vlc-commits] direct3d11: use the projection Vertex Shader for non-flat sources

Steve Lhomme git at videolan.org
Tue Nov 22 21:40:27 CET 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Nov 22 11:59:43 2016 +0100| [37ab9432b1e037e0a9f3d12d1582741f915839eb] | committer: Jean-Baptiste Kempf

direct3d11: use the projection Vertex Shader for non-flat sources

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=37ab9432b1e037e0a9f3d12d1582741f915839eb
---

 modules/video_output/win32/direct3d11.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 3333218..eeef392 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2162,7 +2162,11 @@ static int AllocQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
     {
         if (!AllocQuadVertices(vd, quad, projection))
             goto error;
-        quad->d3dvertexShader = sys->flatVSShader;
+
+        if (projection == PROJECTION_MODE_RECTANGULAR)
+            quad->d3dvertexShader = sys->flatVSShader;
+        else
+            quad->d3dvertexShader = sys->projectionVSShader;
 
         quad->d3dpixelShader = d3dpixelShader;
         ID3D11PixelShader_AddRef(quad->d3dpixelShader);



More information about the vlc-commits mailing list