If numStrides is 0, make sure BufStrides is NULL

This commit is contained in:
baldurk
2015-08-24 01:07:14 +02:00
parent cb64c16895
commit ef6dcaf8b4
+1 -1
View File
@@ -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))
{