Cleanup.
This commit is contained in:
parent
c69f29cb36
commit
5cd313e342
@ -3727,7 +3727,9 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
{
|
||||
if (UINT32_MAX == draw.m_numIndices)
|
||||
{
|
||||
numIndices = m_indexBuffers[draw.m_indexBuffer.idx].m_size/2;
|
||||
const IndexBufferD3D11& ib = m_indexBuffers[draw.m_indexBuffer.idx];
|
||||
const uint32_t indexSize = 0 == (ib.m_flags & BGFX_BUFFER_INDEX32) ? 2 : 4;
|
||||
numIndices = ib.m_size/indexSize;
|
||||
numPrimsSubmitted = numIndices/prim.m_div - prim.m_sub;
|
||||
numInstances = draw.m_numInstances;
|
||||
numPrimsRendered = numPrimsSubmitted*draw.m_numInstances;
|
||||
|
Loading…
x
Reference in New Issue
Block a user