mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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…
x
Reference in New Issue
Block a user