Skip to content
Snippets Groups Projects
Commit d947f063 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

hw:d3d11:d3d11_instance: always set the d3dcontext even on failure


CID #1462218

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 101daa0a
No related branches found
No related tags found
No related merge requests found
......@@ -40,12 +40,10 @@ static size_t instances = 0;
void D3D11_FilterHoldInstance(filter_t *filter, d3d11_device_t *out, D3D11_TEXTURE2D_DESC *dstDesc)
{
out->d3dcontext = NULL;
picture_t *pic = filter_NewPicture(filter);
if (!pic)
{
out->d3dcontext = NULL;
return;
}
picture_sys_t *p_sys = ActivePictureSys(pic);
......
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