internal/d3d11,app/internal/wm: add Direct3D11 leak reporting

Updates gio#245

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-07-18 17:33:31 +01:00
parent 13d7a8d760
commit ca5a05bb35
2 changed files with 98 additions and 0 deletions
+3
View File
@@ -133,6 +133,9 @@ func (c *d3d11Context) Release() {
d3d11.IUnknownRelease(unsafe.Pointer(c.dev), c.dev.Vtbl.Release)
}
*c = d3d11Context{}
if debug {
d3d11.ReportLiveObjects()
}
}
func (c *d3d11Context) releaseFBO() {