diff options
Diffstat (limited to 'src/d3d9/d3d9_stateblock.cpp')
-rw-r--r-- | src/d3d9/d3d9_stateblock.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/d3d9/d3d9_stateblock.cpp b/src/d3d9/d3d9_stateblock.cpp index 9bb7181b..0d5bacd9 100644 --- a/src/d3d9/d3d9_stateblock.cpp +++ b/src/d3d9/d3d9_stateblock.cpp @@ -18,7 +18,8 @@ namespace dxvk { } D3D9StateBlock::~D3D9StateBlock() { - m_parent->DecrementLosableCounter(); + if (!m_parent->IsD3D8Compatible()) + m_parent->DecrementLosableCounter(); } HRESULT STDMETHODCALLTYPE D3D9StateBlock::QueryInterface( @@ -575,4 +576,4 @@ namespace dxvk { this->Capture(); } -}
\ No newline at end of file +} |