mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 07:03:44 +02:00
fixed typo
This commit is contained in:
parent
d6428a8145
commit
97aaa738c3
2 changed files with 5 additions and 5 deletions
|
@ -72,12 +72,12 @@ void VoxelSystem::voxelNodeDeleteHook(VoxelNode* node, void* extraData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void VoxelSystem::freeBufferIndex(glBufferIndex index) {
|
void VoxelSystem::freeBufferIndex(glBufferIndex index) {
|
||||||
_freeIdexes.push_back(index);
|
_freeIndexes.push_back(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VoxelSystem::clearFreeBufferIndexes() {
|
void VoxelSystem::clearFreeBufferIndexes() {
|
||||||
for (int i = 0; i < _freeIdexes.size(); i++) {
|
for (int i = 0; i < _freeIndexes.size(); i++) {
|
||||||
glBufferIndex nodeIndex = _freeIdexes[i];
|
glBufferIndex nodeIndex = _freeIndexes[i];
|
||||||
glm::vec3 startVertex(FLT_MAX, FLT_MAX, FLT_MAX);
|
glm::vec3 startVertex(FLT_MAX, FLT_MAX, FLT_MAX);
|
||||||
float voxelScale = 0;
|
float voxelScale = 0;
|
||||||
_writeVoxelDirtyArray[nodeIndex] = true;
|
_writeVoxelDirtyArray[nodeIndex] = true;
|
||||||
|
@ -85,7 +85,7 @@ void VoxelSystem::clearFreeBufferIndexes() {
|
||||||
updateNodeInArrays(nodeIndex, startVertex, voxelScale, color);
|
updateNodeInArrays(nodeIndex, startVertex, voxelScale, color);
|
||||||
_abandonedVBOSlots++;
|
_abandonedVBOSlots++;
|
||||||
}
|
}
|
||||||
_freeIdexes.clear();
|
_freeIndexes.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
VoxelSystem::~VoxelSystem() {
|
VoxelSystem::~VoxelSystem() {
|
||||||
|
|
|
@ -189,7 +189,7 @@ private:
|
||||||
static GLuint _permutationNormalTextureID;
|
static GLuint _permutationNormalTextureID;
|
||||||
|
|
||||||
int _hookID;
|
int _hookID;
|
||||||
std::vector<glBufferIndex> _freeIdexes;
|
std::vector<glBufferIndex> _freeIndexes;
|
||||||
|
|
||||||
static void voxelNodeDeleteHook(VoxelNode* node, void* extraData);
|
static void voxelNodeDeleteHook(VoxelNode* node, void* extraData);
|
||||||
void freeBufferIndex(glBufferIndex index);
|
void freeBufferIndex(glBufferIndex index);
|
||||||
|
|
Loading…
Reference in a new issue