Skip to content
Snippets Groups Projects
Commit d9f9ea7c authored by Steve Lhomme's avatar Steve Lhomme
Browse files

direct3d11: allow VideoProcessor output with alpha if source has no alpha

The VideoProcessor will make it properly opaque.
parent 49c1fc84
No related branches found
No related tags found
1 merge request!5905direct3d11: allow using the decoder from older feature levels
......@@ -898,7 +898,11 @@ static const d3d_format_t *GetDisplayFormatByDepth(vout_display_t *vd, uint8_t b
UINT supportFlags = D3D11_FORMAT_SUPPORT_SHADER_LOAD;
if (from_processor)
{
supportFlags |= D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT;
if (alpha_bits == 0)
alpha_bits = 1; // allow the video processor to alpha opaque alpha
}
const d3d_format_t *res;
res = FindD3D11Format( vd, sys->d3d_dev, 0, rgb_yuv,
bit_depth, widthDenominator+1, heightDenominator+1, alpha_bits,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment