Skip to content

Commit 6d4fab9

Browse files
committed
Addendum to 1ba43ce: Actually fix performance hit
1 parent 809c296 commit 6d4fab9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Client/core/DXHook/CProxyDirect3D9.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ CProxyDirect3D9::~CProxyDirect3D9()
137137
/*** IUnknown methods ***/
138138
HRESULT CProxyDirect3D9::QueryInterface(REFIID riid, void** ppvObj)
139139
{
140-
if (!m_pDevice || !IsValidComInterfacePointer(m_pDevice, ComPtrValidation::ValidationMode::ForceRefresh))
140+
if (!m_pDevice || !IsValidComInterfacePointer(m_pDevice))
141141
{
142142
SString message;
143143
message.Format("CProxyDirect3D9::QueryInterface rejected invalid IDirect3D9 pointer %p", m_pDevice);
@@ -156,7 +156,7 @@ ULONG CProxyDirect3D9::AddRef()
156156

157157
if (m_pDevice)
158158
{
159-
if (IsValidComInterfacePointer(m_pDevice, ComPtrValidation::ValidationMode::ForceRefresh))
159+
if (IsValidComInterfacePointer(m_pDevice))
160160
{
161161
m_pDevice->AddRef();
162162
}
@@ -185,7 +185,7 @@ ULONG CProxyDirect3D9::Release()
185185

186186
if (m_pDevice && lNewRefCount > 0)
187187
{
188-
if (IsValidComInterfacePointer(m_pDevice, ComPtrValidation::ValidationMode::ForceRefresh))
188+
if (IsValidComInterfacePointer(m_pDevice))
189189
{
190190
m_pDevice->Release();
191191
}

0 commit comments

Comments
 (0)