Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit e8b8fd3

Browse files
committed
Merge branch 'dev/lvengesanam/resolve_issue_with_queue_synchronization' into 'main'
[REMIX-3876] Correcting data queue access associated with SetSoftwareVertexProcessing API call See merge request lightspeedrtx/bridge-remix-nv!147
2 parents beca9b3 + 4111b19 commit e8b8fd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client/d3d9_device.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,8 @@ HRESULT Direct3DDevice9Ex_LSS<EnableSync>::SetSoftwareVertexProcessing(BOOL bSof
22722272
LogFunctionCall();
22732273
{
22742274
BRIDGE_DEVICE_LOCKGUARD();
2275+
if (m_bSoftwareVtxProcessing == bSoftware)
2276+
return D3D_OK;
22752277
m_bSoftwareVtxProcessing = bSoftware;
22762278
}
22772279
UID currentUID = 0;
@@ -2283,6 +2285,8 @@ HRESULT Direct3DDevice9Ex_LSS<EnableSync>::SetSoftwareVertexProcessing(BOOL bSof
22832285
WAIT_FOR_SERVER_RESPONSE("SetSoftwareVertexProcessing()", D3DERR_INVALIDCALL, currentUID);
22842286

22852287
HRESULT hresult = DeviceBridge::get_data();
2288+
DeviceBridge::pop_front();
2289+
22862290
return hresult;
22872291
}
22882292

0 commit comments

Comments
 (0)