diff options
author | Graham Booker <gbooker@plexapp.com> | 2022-04-22 08:35:05 -0500 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-07-21 16:13:45 +0200 |
commit | 99315383f8635a2b8d0ca422e1221bdfa70e6471 (patch) | |
tree | 5d9c014ca2b79541986bdbed158287ba6715ad02 /video/out | |
parent | ad5a1ac8733e6b4cf86e7b6d84c50ddf37ca62cd (diff) | |
download | mpv-99315383f8635a2b8d0ca422e1221bdfa70e6471.tar.bz2 mpv-99315383f8635a2b8d0ca422e1221bdfa70e6471.tar.xz |
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.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/d3d11/ra_d3d11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/d3d11/ra_d3d11.c b/video/out/d3d11/ra_d3d11.c index 2d975499fb..98eac6dd64 100644 --- a/video/out/d3d11/ra_d3d11.c +++ b/video/out/d3d11/ra_d3d11.c @@ -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); |