diff options
author | Luca Barbieri <[email protected]> | 2010-09-27 22:52:34 +0200 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-09-27 23:43:53 +0200 |
commit | 912682659414f45dc0afca1950db3be1738c0dad (patch) | |
tree | 01ab5b934b7bce3dccd45eb0ee4abee586f6f29e /src/gallium | |
parent | 923c3334fbf215db2da123133bc4f1f32d58024e (diff) |
d3d11: fix reference counting so devices get freed
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index 9852dafa353..95ea4e00fc1 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 } |