mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Derp, need to bind the element array buffer.
This commit is contained in:
parent
9356d1a27d
commit
7ab1055d47
1 changed files with 2 additions and 2 deletions
|
@ -72,9 +72,9 @@ void GeometryCache::renderHemisphere(int slices, int stacks) {
|
|||
}
|
||||
|
||||
glGenBuffers(1, &vbo.second);
|
||||
glBindBuffer(GL_ARRAY_BUFFER, vbo.second);
|
||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vbo.second);
|
||||
const int BYTES_PER_INDEX = sizeof(GLushort);
|
||||
glBufferData(GL_ARRAY_BUFFER, indices * BYTES_PER_INDEX, indexData, GL_STATIC_DRAW);
|
||||
glBufferData(GL_ELEMENT_ARRAY_BUFFER, indices * BYTES_PER_INDEX, indexData, GL_STATIC_DRAW);
|
||||
delete[] indexData;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue