[d3d9] Exit early in ProcessVertices if the vertex count is 0

We don't want to pass a zero-sized copy to the backend.
This commit is contained in:
Philip Rebohle 2022-02-12 15:30:38 +01:00
parent 26381fd5df
commit a03c038f03
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 3 additions and 0 deletions

View File

@ -2598,6 +2598,9 @@ namespace dxvk {
return D3D_OK;
}
if (!VertexCount)
return D3D_OK;
D3D9CommonBuffer* dst = static_cast<D3D9VertexBuffer*>(pDestBuffer)->GetCommonBuffer();
D3D9VertexDecl* decl = static_cast<D3D9VertexDecl*> (pVertexDecl);