summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-02-19 04:45:48 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-02-19 04:45:48 +0000
commite55f3cd48a7aa73b780537de6e484fde3892ba6b (patch)
tree11f0dd3ff7b20d56dbd2e3559858483646826200 /Graphics/GraphicsEngineD3D12
parentFixed typo (diff)
downloadDiligentCore-e55f3cd48a7aa73b780537de6e484fde3892ba6b.tar.gz
DiligentCore-e55f3cd48a7aa73b780537de6e484fde3892ba6b.zip
Minor updates in D3D12 and Vk backends: not committing vertex buffers when PSO doesn't use any
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
index 83f93a83..7e8eeeed 100644
--- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
+++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp
@@ -385,7 +385,7 @@ namespace Diligent
#endif
}
- if (!m_State.bCommittedD3D12VBsUpToDate)
+ if (!m_State.bCommittedD3D12VBsUpToDate && m_pPipelineState->GetNumBufferSlotsUsed() > 0)
{
CommitD3D12VertexBuffers(GraphCtx);
}