mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user