Skip to content

Commit

Permalink
Making responses from server to client thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
lvengesanam committed Jun 29, 2023
1 parent bf0984b commit 1e445e7
Show file tree
Hide file tree
Showing 11 changed files with 529 additions and 266 deletions.
4 changes: 3 additions & 1 deletion src/client/d3d9_base_texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,14 @@ class Direct3DBaseTexture9_LSS: public Direct3DContainer9_LSS<Direct3DResource9_

if (m_mipFilter != FilterType) {
m_mipFilter = FilterType;
UID currentUID = 0;
{
BRIDGE_PARENT_DEVICE_LOCKGUARD();
ClientMessage c(Commands::IDirect3DBaseTexture9_SetAutoGenFilterType, getId());
currentUID = c.get_uid();
c.send_data(FilterType);
}
WAIT_FOR_OPTIONAL_SERVER_RESPONSE("SetAutoGenFilterType()", D3DERR_INVALIDCALL);
WAIT_FOR_OPTIONAL_SERVER_RESPONSE("SetAutoGenFilterType()", D3DERR_INVALIDCALL, currentUID);
}

return S_OK;
Expand Down
Loading

0 comments on commit 1e445e7

Please sign in to comment.