mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-16 22:40:53 +08:00
context_angle: fix D3D11 device leak
Release the immediate context, which holds a reference to the device.
This commit is contained in:
@@ -209,6 +209,7 @@ static void d3d11_device_destroy(struct ra_ctx *ctx)
|
||||
eglReleaseDeviceANGLE(p->egl_device);
|
||||
p->egl_device = 0;
|
||||
|
||||
SAFE_RELEASE(p->d3d11_context);
|
||||
SAFE_RELEASE(p->d3d11_device);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user