History

The end parameter to glDrawRangeElements is inclusive.

Andrzej Kapolka committed 13 years ago

Commit c7e840e1 parent 8b65fca1 file · +1 −1Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/VoxelSystem.cpp+1−1
@@ -659,7 +659,7 @@ void VoxelSystem::render(bool texture) { · 658 unmodified lines
659 // draw the number of voxels we have659 // draw the number of voxels we have
660 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _vboIndicesID);660 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _vboIndicesID);
661 glScalef(TREE_SCALE, TREE_SCALE, TREE_SCALE);661 glScalef(TREE_SCALE, TREE_SCALE, TREE_SCALE);
662 glDrawRangeElementsEXT(GL_TRIANGLES, 0, VERTICES_PER_VOXEL * _voxelsInReadArrays,662 glDrawRangeElementsEXT(GL_TRIANGLES, 0, VERTICES_PER_VOXEL * _voxelsInReadArrays - 1,
663 36 * _voxelsInReadArrays, GL_UNSIGNED_INT, 0);663 36 * _voxelsInReadArrays, GL_UNSIGNED_INT, 0);
664 664
665 glEnable(GL_BLEND);665 glEnable(GL_BLEND);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t