Slight optimisation
This commit is contained in:
parent
7c33f13438
commit
1ee16d8ee1
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user