fix memory leak when screenshotting/framedumping with osd with d3d9 display method
This commit is contained in:
parent
a1ec56d748
commit
af4e9200ed
|
@ -671,7 +671,9 @@ namespace BizHawk.Bizware.Graphics
|
|||
using var target = new Texture(_device, tex.IntWidth, tex.IntHeight, 1, Usage.None, Format.A8R8G8B8, Pool.SystemMemory);
|
||||
var tw = (TextureWrapper)tex.Opaque;
|
||||
|
||||
_device.GetRenderTargetData(tw.Texture.GetSurfaceLevel(0), target.GetSurfaceLevel(0));
|
||||
using var rtSurf = tw.Texture.GetSurfaceLevel(0);
|
||||
using var dstSurf = target.GetSurfaceLevel(0);
|
||||
_device.GetRenderTargetData(rtSurf, dstSurf);
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue