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:
parent
f9c2e43ffc
commit
41f04ffb61
@ -40,7 +40,7 @@ namespace dxvk {
|
||||
ULONG refCount = m_refCount++;
|
||||
if (!refCount)
|
||||
m_device->AddRef();
|
||||
return refCount;
|
||||
return refCount + 1;
|
||||
}
|
||||
|
||||
|
||||
|
@ -39,7 +39,7 @@ namespace dxvk {
|
||||
ULONG refCount = m_refCount++;
|
||||
if (!refCount)
|
||||
m_parent->AddRef();
|
||||
return refCount;
|
||||
return refCount + 1;
|
||||
}
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ namespace dxvk {
|
||||
ULONG refCount = m_refCount++;
|
||||
if (!refCount)
|
||||
m_device->AddRef();
|
||||
return refCount;
|
||||
return refCount + 1;
|
||||
}
|
||||
|
||||
|
||||
|
@ -54,7 +54,7 @@ namespace dxvk {
|
||||
ULONG refCount = m_refCount++;
|
||||
if (!refCount)
|
||||
m_device->AddRef();
|
||||
return refCount;
|
||||
return refCount + 1;
|
||||
}
|
||||
|
||||
|
||||
|
@ -63,7 +63,7 @@ namespace dxvk {
|
||||
ULONG refCount = m_refCount++;
|
||||
if (!refCount)
|
||||
m_device->AddRef();
|
||||
return refCount;
|
||||
return refCount + 1;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user