mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:06:02 +02:00
The end parameter to glDrawRangeElements is inclusive.
This commit is contained in:
parent
8b65fcae75
commit
c7e840e0d4
1 changed files with 1 additions and 1 deletions
|
@ -659,7 +659,7 @@ void VoxelSystem::render(bool texture) {
|
||||||
// draw the number of voxels we have
|
// draw the number of voxels we have
|
||||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _vboIndicesID);
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _vboIndicesID);
|
||||||
glScalef(TREE_SCALE, TREE_SCALE, TREE_SCALE);
|
glScalef(TREE_SCALE, TREE_SCALE, TREE_SCALE);
|
||||||
glDrawRangeElementsEXT(GL_TRIANGLES, 0, VERTICES_PER_VOXEL * _voxelsInReadArrays,
|
glDrawRangeElementsEXT(GL_TRIANGLES, 0, VERTICES_PER_VOXEL * _voxelsInReadArrays - 1,
|
||||||
36 * _voxelsInReadArrays, GL_UNSIGNED_INT, 0);
|
36 * _voxelsInReadArrays, GL_UNSIGNED_INT, 0);
|
||||||
|
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
|
|
Loading…
Reference in a new issue