mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
If numStrides is 0, make sure BufStrides is NULL
This commit is contained in:
@@ -1381,7 +1381,7 @@ bool WrappedID3D11Device::Serialise_CreateGeometryShaderWithStreamOutput(
|
||||
|
||||
ID3D11GeometryShader *ret;
|
||||
HRESULT hr = m_pDevice->CreateGeometryShaderWithStreamOutput(ShaderBytecode, (size_t)BytecodeLen,
|
||||
SODecl, numEntries, BufStrides, numStrides, RastStream, linkage, &ret);
|
||||
SODecl, numEntries, numStrides == 0 ? NULL : BufStrides, numStrides, RastStream, linkage, &ret);
|
||||
|
||||
if(FAILED(hr))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user