Commit 97dca37b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Direct3D: deactivate old drivers with insufficient capabilities.

Ref #6501 and #6469
parent 50a1fc8f
......@@ -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;
}
......
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