I hand-coded the arrays in hope to find the error but no luck.
static GLuint tindices[20][3] = {
{0,4,1}, {0,9,4}, {9,5,4}, {4,5,8}, {4,8,1},
{8,10,1}, {8,3,10}, {5,3,8}, {5,2,3}, {2,7,3},
{7,10,3}, {7,6,10}, {7,11,6}, {11,0,6}, {0,1,6},
{6,1,10}, {9,0,11}, {9,11,2}, {9,2,5}, {7,2,11} };
static void *indices[20] = {
tindices[0], tindices[1], tindices[2], tindices[3], tindices[4],
tindices[5], tindices[6], tindices[7], tindices[8], tindices[9],
tindices[10], tindices[11], tindices[12], tindices[13], tindices[14],
tindices[15], tindices[16], tindices[17], tindices[18], tindices[19]};
static GLsizei count[20] = {
3, 3, 3, 3, 3,
3, 3, 3, 3, 3,
3, 3, 3, 3, 3,
3, 3, 3, 3, 3,
};
glMultiDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_INT, &indices, 20);
I’ve set up the Arrays and it’s all working properly but the compiler continues to give me this warning.
And I do care about this warning since I’m lacking experience in handling pointers and therefore get more insecure with warnings like this though it’s all working at the moment.