vlc | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]>

> 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;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to