[vlc-devel] [PATCH 01/12] direct3d11: use same texture size for the staging texture as the decoding one

Steve Lhomme robux4 at gmail.com
Fri Apr 28 17:46:15 CEST 2017


From: Steve Lhomme <robux4 at videolabs.io>

Fixes some positioning issues when the staging texture is used.
---
 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;
 
-- 
2.12.1



More information about the vlc-devel mailing list