Commit b883bb4d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

direct3d9: Remove too drastic check

We check for those capabilities during Direct3D9CreateScene, and can
recover if they aren't supported
parent 0a4ed919
......@@ -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;
}
......
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