d3d11: fix reference counting so devices get freed

This commit is contained in:
Luca Barbieri
2010-09-27 22:52:34 +02:00
parent 923c3334fb
commit 9126826594
@@ -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
}