justinstenning / Direct3DHook

DirectX Capture and Overlays by using Direct3D API hooks
http://spazzarama.com/2011/03/14/c-screen-capture-and-overlays-for-direct3d-9-10-and-11-using-api-hooks
MIT License
582 stars 176 forks source link

Fixed a memory leak in DX11 > DXSprite.cs #82

Closed MarcellVokk closed 1 year ago

MarcellVokk commented 1 year ago

A Texture2D object created at BeginBatch was not being disposed properly. By wraping the Texture2D object in a using statement, this issue is now fixed!