[vlc-commits] direct3d9: Remove too drastic check

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


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

direct3d9: Remove too drastic check

We check for those capabilities during Direct3D9CreateScene, and can
recover if they aren't supported

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

 modules/video_output/win32/direct3d9.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 805b7c67b6..0ae253e604 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -749,9 +749,7 @@ static int Direct3D9Create(vout_display_t *vd)
     }
 
     /* TODO: need to test device capabilities and select the right render function */
-    if (!(sys->d3dcaps.DevCaps2 & D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES) ||
-        !(sys->d3dcaps.TextureFilterCaps & (D3DPTFILTERCAPS_MAGFLINEAR)) ||
-        !(sys->d3dcaps.TextureFilterCaps & (D3DPTFILTERCAPS_MINFLINEAR))) {
+    if (!(sys->d3dcaps.DevCaps2 & D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES)) {
         msg_Err(vd, "Device does not support stretching from textures.");
         return VLC_EGENERIC;
     }



More information about the vlc-commits mailing list