diff --git a/src/d3d11/d3d11_blend.cpp b/src/d3d11/d3d11_blend.cpp index 0bd0c9f2d..1e86b6169 100644 --- a/src/d3d11/d3d11_blend.cpp +++ b/src/d3d11/d3d11_blend.cpp @@ -40,7 +40,7 @@ namespace dxvk { ULONG refCount = m_refCount++; if (!refCount) m_device->AddRef(); - return refCount; + return refCount + 1; } diff --git a/src/d3d11/d3d11_context_imm.cpp b/src/d3d11/d3d11_context_imm.cpp index a93414df2..58fce7fd8 100644 --- a/src/d3d11/d3d11_context_imm.cpp +++ b/src/d3d11/d3d11_context_imm.cpp @@ -39,7 +39,7 @@ namespace dxvk { ULONG refCount = m_refCount++; if (!refCount) m_parent->AddRef(); - return refCount; + return refCount + 1; } diff --git a/src/d3d11/d3d11_depth_stencil.cpp b/src/d3d11/d3d11_depth_stencil.cpp index cd5bc7b5e..9ff4830f6 100644 --- a/src/d3d11/d3d11_depth_stencil.cpp +++ b/src/d3d11/d3d11_depth_stencil.cpp @@ -25,7 +25,7 @@ namespace dxvk { ULONG refCount = m_refCount++; if (!refCount) m_device->AddRef(); - return refCount; + return refCount + 1; } diff --git a/src/d3d11/d3d11_rasterizer.cpp b/src/d3d11/d3d11_rasterizer.cpp index ae4d5be7e..2f7914d35 100644 --- a/src/d3d11/d3d11_rasterizer.cpp +++ b/src/d3d11/d3d11_rasterizer.cpp @@ -54,7 +54,7 @@ namespace dxvk { ULONG refCount = m_refCount++; if (!refCount) m_device->AddRef(); - return refCount; + return refCount + 1; } diff --git a/src/d3d11/d3d11_sampler.cpp b/src/d3d11/d3d11_sampler.cpp index 5aff4e15a..ce0a12b53 100644 --- a/src/d3d11/d3d11_sampler.cpp +++ b/src/d3d11/d3d11_sampler.cpp @@ -63,7 +63,7 @@ namespace dxvk { ULONG refCount = m_refCount++; if (!refCount) m_device->AddRef(); - return refCount; + return refCount + 1; }