Slight optimisation

This commit is contained in:
Luke Benstead 2019-03-13 17:38:42 +00:00
parent 7c33f13438
commit 1ee16d8ee1

View File

@ -842,10 +842,11 @@ static inline void genElementsTriangleStrip(
}
static inline void genArraysTriangles(ClipVertex* output, GLuint count) {
GLsizei i = count;
ClipVertex* vertex = output;
for(i = 2; i < count; i += 3) {
vertex[i].flags = PVR_CMD_VERTEX_EOL;
const ClipVertex* end = output + count;
ClipVertex* it = output + 2;
while(it < end) {
it->flags = PVR_CMD_VERTEX_EOL;
it += 3;
}
}