Fixed issue with quad buffer.
This commit is contained in:
@ -27,8 +27,13 @@ void quadBuffer(primitive_t *primitive,
|
||||
vertices[3].x = x1, vertices[3].y = y1, vertices[3].z = 0;
|
||||
vertices[3].u = u1, vertices[3].v = v1;
|
||||
|
||||
indices[0] = (indice_t)0, indices[1] = (indice_t)1, indices[2] = (indice_t)2;
|
||||
indices[3] = (indice_t)1, indices[4] = (indice_t)2, indices[5] = (indice_t)3;
|
||||
indices[0] = (indice_t)verticeStart + 0;
|
||||
indices[1] = (indice_t)verticeStart + 1;
|
||||
indices[2] = (indice_t)verticeStart + 2;
|
||||
|
||||
indices[3] = (indice_t)verticeStart + 1;
|
||||
indices[4] = (indice_t)verticeStart + 2;
|
||||
indices[5] = (indice_t)verticeStart + 3;
|
||||
|
||||
primitiveBufferVertices(primitive, verticeStart, 4, vertices);
|
||||
primitiveBufferIndices(primitive, indiceStart, 6, indices);
|
||||
|
Reference in New Issue
Block a user