diff options
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
| -rwxr-xr-x | Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp index f177586d..df4a59c3 100755 --- a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp +++ b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp @@ -687,13 +687,12 @@ namespace Diligent bool BindVBs = m_NumVertexStreams != m_NumCommittedD3D11VBs;
- const auto* Strides = pPipelineStateD3D11->GetBufferStrides();
for (UINT Slot = 0; Slot < m_NumVertexStreams; ++Slot)
{
auto& CurrStream = m_VertexStreams[Slot];
auto* pBuffD3D11Impl = CurrStream.pBuffer.RawPtr();
ID3D11Buffer* pd3d11Buffer = pBuffD3D11Impl ? pBuffD3D11Impl->m_pd3d11Buffer : nullptr;
- auto Stride = Strides[Slot];
+ auto Stride = pPipelineStateD3D11->GetBufferStride(Slot);
auto Offset = CurrStream.Offset;
// It is safe to perform raw pointer check because device context keeps
|
