Commit e2518461 authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

Direct3D: do not leak textures when recycling them

If several textures from the cache (i.e. used during the previous
call) are matching we invalidate all of them but only keep the last
one. We therefore lose all references to the other ones.

Close #10248
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 79295631
......@@ -1439,6 +1439,7 @@ static void Direct3DImportSubpicture(vout_display_t *vd,
#endif
*d3dr = *cache;
memset(cache, 0, sizeof(*cache));
break;
}
}
if (!d3dr->texture) {
......
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