Commit 2ba574ed authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen

direct3d11: make sur we have a picture->context with D3D11 opaque input

CID #1444697
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 51903419
......@@ -1147,6 +1147,7 @@ static void Prepare(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
else
{
/* copy pixels from the context texture to the picture_sys texture */
assert(pic_ctx!=NULL);
D3D11_TEXTURE2D_DESC texDesc;
ID3D11Texture2D_GetDesc(p_sys->texture[0], &texDesc);
if (texDesc.BindFlags & D3D11_BIND_SHADER_RESOURCE)
......
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