mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Do not cache non buffer vertex attribute
Fix dice test
This commit is contained in:
parent
73aeda1507
commit
141c7ef340
1 changed files with 2 additions and 1 deletions
|
@ -297,7 +297,8 @@ std::pair<std::vector<D3D12_VERTEX_BUFFER_VIEW>, D3D12_INDEX_BUFFER_VIEW> D3D12G
|
|||
auto It = m_vertexCache.find(key);
|
||||
|
||||
ID3D12Resource *vertexBuffer;
|
||||
if (It != m_vertexCache.end())
|
||||
if (vbf.range.first != 0 && // Attribute is stored in a buffer, not inline in command buffer
|
||||
It != m_vertexCache.end())
|
||||
vertexBuffer = It->second;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue