Bugfix: fix 2/3 of nodes missing.
This commit is contained in:
@@ -86,7 +86,7 @@ void FlatLayerVisualisation::render()
|
|||||||
|
|
||||||
glVertexPointer(3, GL_FLOAT, 0, vertexBuffer.data());
|
glVertexPointer(3, GL_FLOAT, 0, vertexBuffer.data());
|
||||||
glColorPointer(3, GL_FLOAT, 0, colorBuffer.data());
|
glColorPointer(3, GL_FLOAT, 0, colorBuffer.data());
|
||||||
glDrawElements(GL_TRIANGLES, faceCount, GL_UNSIGNED_INT, indexBuffer.data());
|
glDrawElements(GL_TRIANGLES, faceCount * 3, GL_UNSIGNED_INT, indexBuffer.data());
|
||||||
|
|
||||||
glDisable(GL_VERTEX_ARRAY);
|
glDisable(GL_VERTEX_ARRAY);
|
||||||
glDisable(GL_COLOR_ARRAY);
|
glDisable(GL_COLOR_ARRAY);
|
||||||
|
|||||||
Reference in New Issue
Block a user