From 912682659414f45dc0afca1950db3be1738c0dad Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Mon, 27 Sep 2010 22:52:34 +0200 Subject: d3d11: fix reference counting so devices get freed --- src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/state_trackers/d3d1x/gd3d11') diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index 9852dafa35..95ea4e00fc 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h @@ -145,6 +145,8 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen #if API >= 11 immediate_context = GalliumD3D11ImmediateDeviceContext_Create(this, immediate_pipe, owns_immediate_pipe); + // release to the reference to ourselves that the immediate context took, to avoid a garbage cycle + immediate_context->Release(); #endif } -- cgit v1.2.3