diff options
author | Luca Barbieri <[email protected]> | 2010-09-23 03:10:50 +0200 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-09-23 03:13:52 +0200 |
commit | 881c05aa1ec22bb229a0bceae372d68f9fc91431 (patch) | |
tree | ce9ab029d502aaa47dc56f361b93d4c861bee9bd /src/gallium/state_trackers | |
parent | 17eace581d25a626a7d75d9d1205d012cbb14a6e (diff) |
d3d1x: properly reference count the backend
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp index 3cbe056e7b6..2149d83a9c6 100644 --- a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp +++ b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp @@ -1381,7 +1381,11 @@ void STDMETHODCALLTYPE GalliumDXGIUseHDC(HDC hdc, PFNHWNDRESOLVER resolver, void */ void STDMETHODCALLTYPE GalliumDXGIMakeDefault() { + if(dxgi_default_binding.backend) + dxgi_default_binding.backend->Release(); dxgi_default_binding = dxgi_thread_binding; + if(dxgi_default_binding.backend) + dxgi_default_binding.backend->AddRef(); } /* TODO: why did Microsoft add this? should we do something different for DXGI 1.0 and 1.1? |