d3d12: Another fix for vertex buffer not big enough buffer

This commit is contained in:
vlj 2015-05-26 15:58:03 +02:00 committed by Vincent Lejeune
parent 233450a7ca
commit c5a1f8930f

View File

@ -170,7 +170,7 @@ std::vector<VertexBufferFormat> FormatVertexData(RSXVertexData *m_vertex_data)
// If there is a single element, stride is 0, use the size of element instead
size_t stride = m_vertex_data[i].stride;
size_t elementSize = m_vertex_data[i].GetTypeSize();
std::pair<size_t, size_t> range = std::make_pair(m_vertex_data[i].addr, m_vertex_data[i].addr + elementSize + (elementCount - 1) * stride);
std::pair<size_t, size_t> range = std::make_pair(m_vertex_data[i].addr, m_vertex_data[i].addr + elementSize + elementCount * stride);
bool isMerged = false;
for (VertexBufferFormat &vbf : Result)