index buffers (this bug was hidden by gl_mesh_drawrangeelements being 1
by default)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11961
d7cf8633-e32d-0410-b094-
e92efae38249
else
#endif
{
- qglDrawElements(GL_TRIANGLES, numelements, GL_UNSIGNED_SHORT, (void *)(firsttriangle * sizeof(unsigned short[3])));
+ qglDrawElements(GL_TRIANGLES, numelements, GL_UNSIGNED_SHORT, (void *)bufferoffset3s);
CHECKGLERROR
}
}
else
#endif
{
- qglDrawElements(GL_TRIANGLES, numelements, GL_UNSIGNED_INT, (void *)(firsttriangle * sizeof(unsigned int[3])));
+ qglDrawElements(GL_TRIANGLES, numelements, GL_UNSIGNED_INT, (void *)bufferoffset3i);
CHECKGLERROR
}
}