From 99315383f8635a2b8d0ca422e1221bdfa70e6471 Mon Sep 17 00:00:00 2001 From: Graham Booker Date: Fri, 22 Apr 2022 08:35:05 -0500 Subject: 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. --- video/out/d3d11/ra_d3d11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') 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); -- cgit v1.2.3