Improved code
Former-commit-id: 33082b8f9d55c7a3b9550c788eb27fc613c08032
This commit is contained in:
@@ -242,6 +242,7 @@ void NzRenderer::DrawIndexedPrimitivesInstanced(unsigned int instanceCount, nzPr
|
||||
{
|
||||
GLenum type;
|
||||
const nzUInt8* ptr = reinterpret_cast<const nzUInt8*>(s_indexBuffer->GetPointer());
|
||||
|
||||
if (s_indexBuffer->HasLargeIndices())
|
||||
{
|
||||
ptr += firstIndex*sizeof(nzUInt32);
|
||||
|
||||
Reference in New Issue
Block a user