[vlc-commits] direct3d9: Simplify the source area to be copied

Hugo Beauzée-Luyssen git at videolan.org
Tue May 16 17:41:35 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon May 15 18:47:15 2017 +0200| [1126f6c80cced85ec72106e06e09eb6e723b000b] | committer: Hugo Beauzée-Luyssen

direct3d9: Simplify the source area to be copied

rect_src is equivalent to NULL since the source offscreen texture was
created based on rect_src's value

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

 modules/video_output/win32/direct3d9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 2c8655e77a..e4d82583d1 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1562,7 +1562,7 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
 
     /* Copy picture surface into texture surface
      * color space conversion happen here */
-    hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, &vd->sys->sys.rect_src, destination, NULL, D3DTEXF_NONE);
+    hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, NULL, destination, NULL, D3DTEXF_NONE);
     IDirect3DSurface9_Release(destination);
     if (FAILED(hr)) {
         msg_Dbg(vd, "Failed IDirect3DDevice9_StretchRect: source 0x%p 0x%0lx",



More information about the vlc-commits mailing list