[vlc-commits] direct3d11: use same texture size for the staging texture as the decoding one

Steve Lhomme git at videolan.org
Tue May 2 10:03:06 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Apr 28 17:46:15 2017 +0200| [a09a98d62b7610a384dc4e637845f4d60275333c] | committer: Jean-Baptiste Kempf

direct3d11: use same texture size for the staging texture as the decoding one

Fixes some positioning issues when the staging texture is used.

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

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

 modules/video_output/win32/direct3d11.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 2fad5f69c5..886fdf1d3a 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -820,8 +820,6 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned pool_size)
         /* we need a staging texture */
         video_format_t staging_fmt;
         video_format_Copy(&staging_fmt, &surface_fmt);
-        staging_fmt.i_width = staging_fmt.i_visible_width;
-        staging_fmt.i_height = staging_fmt.i_visible_height;
         if (AllocateTextures(vd, sys->picQuadConfig, &staging_fmt, 1, textures))
             goto error;
 



More information about the vlc-commits mailing list