1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[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

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);