Skip to content

Commit

Permalink
Leak some things in test harness for now
Browse files Browse the repository at this point in the history
  • Loading branch information
PyryM committed Jan 31, 2024
1 parent a81e669 commit 29811aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/tests/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def __init__(
self.name = name
self.width, self.height = resolution
self.instance, self.adapter, self.device, _surf = xg.helpers.startup()
self.instance.leak() # leak to prevent segfault on exit?
self.adapter.leak()
self.device.leak()
texsize = xg.extent3D(width=self.width, height=self.height, depthOrArrayLayers=1)
self.color_tex = self.device.createTexture(
usage=xg.TextureUsage.RenderAttachment | xg.TextureUsage.CopySrc,
Expand Down

0 comments on commit 29811aa

Please sign in to comment.