mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-04 22:25:01 -06:00
d3d12: Do not cache non buffer vertex attribute
Fix dice test
This commit is contained in:
parent
73aeda1507
commit
141c7ef340
@ -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…
Reference in New Issue
Block a user