Commit 043959a6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Direct3D: reject too old drivers and let them fallback to DirectDraw

They would not work with IDirect3DDevice9::StretchRect
See:
http://forum.videolan.org/viewtopic.php?f=14&t=99498
http://forum.videolan.org/viewtopic.php?f=14&t=99235
http://forum.videolan.org/viewtopic.php?f=14&t=98882
http://forum.videolan.org/viewtopic.php?f=14&t=98514
(cherry picked from commit 544af798a1ec033321a51125c2c71769cc7b7873)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6bc24f38
......@@ -510,6 +510,10 @@ 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)) {
msg_Err(vd, "Device does not support stretching from textures.");
return VLC_EGENERIC;
}
return VLC_SUCCESS;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment