remove unnecessary re-binding
This commit is contained in:
parent
a8b85f7246
commit
1fe30cc71f
@ -45,8 +45,6 @@ void display(void)
|
|||||||
GL_CHECK(glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indexes), indexes,
|
GL_CHECK(glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indexes), indexes,
|
||||||
GL_STATIC_DRAW));
|
GL_STATIC_DRAW));
|
||||||
|
|
||||||
GL_CHECK(glBindBuffer(GL_ARRAY_BUFFER, buffers[0]));
|
|
||||||
GL_CHECK(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, buffers[1]));
|
|
||||||
GL_CHECK(glVertexPointer(3, GL_FLOAT, ADDR_DIFF(&data[0], &data[1]),
|
GL_CHECK(glVertexPointer(3, GL_FLOAT, ADDR_DIFF(&data[0], &data[1]),
|
||||||
(void *) ADDR_DIFF(&data, &data[0][0][0])));
|
(void *) ADDR_DIFF(&data, &data[0][0][0])));
|
||||||
GL_CHECK(glColorPointer(4, GL_FLOAT, ADDR_DIFF(&data[0], &data[1]),
|
GL_CHECK(glColorPointer(4, GL_FLOAT, ADDR_DIFF(&data[0], &data[1]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user