vo_gpu/d3d11: fix VRAM leak

A VRAM memory leak was present in d3d11 when `idle=yes` and playback
stops for an item. This patch re-enables some of the code which is
only used during diagnostic which fixes the issue.
This commit is contained in:
Graham Booker 2022-04-22 08:35:05 -05:00 committed by Niklas Haas
parent ad5a1ac873
commit 99315383f8
1 changed files with 1 additions and 1 deletions

View File

@ -2229,7 +2229,7 @@ static void destroy(struct ra *ra)
SAFE_RELEASE(p->dev1);
SAFE_RELEASE(p->dev);
if (p->debug && p->ctx) {
if (p->ctx) {
// Destroy the device context synchronously so referenced objects don't
// show up in the leak check
ID3D11DeviceContext_ClearState(p->ctx);