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:
parent
26381fd5df
commit
a03c038f03
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user