mirror of
https://github.com/mpv-player/mpv
synced 2024-12-31 19:52:16 +00:00
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:
parent
ad5a1ac873
commit
99315383f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user