mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:21:57 +00:00
[c-host] dxgi: release resources
This commit is contained in:
parent
67c7c79dae
commit
be736c48e9
1 changed files with 3 additions and 0 deletions
|
@ -439,6 +439,9 @@ static CaptureResult dxgi_capture(bool * hasFrameUpdate, bool * hasPointerUpdate
|
|||
ID3D11DeviceContext_CopyResource(this->deviceContext,
|
||||
(ID3D11Resource *)this->texture, (ID3D11Resource *)src);
|
||||
|
||||
ID3D11Texture2D_Release(src);
|
||||
IDXGIResource_Release(res);
|
||||
|
||||
*hasFrameUpdate = true;
|
||||
|
||||
if (frameInfo.PointerShapeBufferSize > 0)
|
||||
|
|
Loading…
Reference in a new issue