mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12: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);
|
auto It = m_vertexCache.find(key);
|
||||||
|
|
||||||
ID3D12Resource *vertexBuffer;
|
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;
|
vertexBuffer = It->second;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue