[vlc-commits] direct3d11: fix the staging texture dimensions

Steve Lhomme git at videolan.org
Tue Jun 13 15:02:22 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Jun  8 17:12:26 2017 +0200| [36738e52c17e5845f281dbfd139e174b81e35887] | committer: Jean-Baptiste Kempf

direct3d11: fix the staging texture dimensions

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

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

 modules/video_output/win32/direct3d11.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 07894850dd..cc6e5aa734 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -748,6 +748,8 @@ 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, true,
                              false))
             goto error;



More information about the vlc-commits mailing list