1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Fix incorrect AddRef return value

This commit is contained in:
Philip Rebohle 2019-10-25 21:36:08 +02:00
parent f9c2e43ffc
commit 41f04ffb61
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
5 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ namespace dxvk {
ULONG refCount = m_refCount++;
if (!refCount)
m_device->AddRef();
return refCount;
return refCount + 1;
}

View File

@ -39,7 +39,7 @@ namespace dxvk {
ULONG refCount = m_refCount++;
if (!refCount)
m_parent->AddRef();
return refCount;
return refCount + 1;
}

View File

@ -25,7 +25,7 @@ namespace dxvk {
ULONG refCount = m_refCount++;
if (!refCount)
m_device->AddRef();
return refCount;
return refCount + 1;
}

View File

@ -54,7 +54,7 @@ namespace dxvk {
ULONG refCount = m_refCount++;
if (!refCount)
m_device->AddRef();
return refCount;
return refCount + 1;
}

View File

@ -63,7 +63,7 @@ namespace dxvk {
ULONG refCount = m_refCount++;
if (!refCount)
m_device->AddRef();
return refCount;
return refCount + 1;
}