Properly uploading index buffer for default draws.

This commit is contained in:
Rinnegatamante
2020-10-21 10:32:04 +02:00
parent fecea9f821
commit f836c0f2c1
+1 -1
View File
@@ -23,7 +23,7 @@ namespace gl3 {
void
drawInst_simple(InstanceDataHeader *header, InstanceData *inst)
{
vglIndexPointerMapped(header->indexBuffer + inst->offset);
vglIndexPointerMapped((uint8_t*)header->indexBuffer + inst->offset);
vglVertexAttribPointerMapped(0, header->vertexBuffer);
vglDrawObjects(header->primType, inst->numIndex, GL_FALSE);
}