[vlc-commits] Direct3D: deactivate old drivers with insufficient capabilities.
Jean-Baptiste Kempf
git at videolan.org
Fri Mar 30 14:36:36 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar 30 13:35:42 2012 +0200| [97dca37bcf82a3219c9014d2ab64542677cd9910] | committer: Jean-Baptiste Kempf
Direct3D: deactivate old drivers with insufficient capabilities.
Ref #6501 and #6469
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97dca37bcf82a3219c9014d2ab64542677cd9910
---
modules/video_output/msw/direct3d.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index fe0cc8d..c472ba9 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -510,7 +510,9 @@ static int Direct3DCreate(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)) {
+ if (!(sys->d3dcaps.DevCaps2 & D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES) ||
+ !(sys->d3dcaps.TextureFilterCaps & (D3DPTFILTERCAPS_MAGFLINEAR)) ||
+ !(sys->d3dcaps.TextureFilterCaps & (D3DPTFILTERCAPS_MINFLINEAR))) {
msg_Err(vd, "Device does not support stretching from textures.");
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list