Skip to content

Commit

Permalink
Merge branch 'ajaus/CreateVertexDeclaration_bad_check' into 'main'
Browse files Browse the repository at this point in the history
Fix overeager check in CreateVertexDeclaration().

See merge request lightspeedrtx/bridge-remix-nv!64
  • Loading branch information
nv-ajaus committed Jan 29, 2024
2 parents 897de48 + 07dee36 commit 745c463
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/client/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2359,9 +2359,6 @@ HRESULT Direct3DDevice9Ex_LSS<EnableSync>::CreateVertexDeclaration(CONST D3DVERT
if (pVertexElements == nullptr || ppDecl == nullptr) {
return D3DERR_INVALIDCALL;
}
if (pVertexElements->Stream == 0xFF) {
return D3DERR_INVALIDCALL;
}
UID currentUID = 0;
{
auto* const pLssVtxDecl = trackWrapper(new Direct3DVertexDeclaration9_LSS(this, pVertexElements));
Expand Down

0 comments on commit 745c463

Please sign in to comment.