...
 
Commits (1)
...@@ -1866,13 +1866,13 @@ GLuint VolumeMeshBufferManager<VolumeMesh>::getBuffer() ...@@ -1866,13 +1866,13 @@ GLuint VolumeMeshBufferManager<VolumeMesh>::getBuffer()
if (buffer) if (buffer)
{ {
if (positionsNeedRebuild()) //if (positionsNeedRebuild())
buildVertexBuffer(buffer); buildVertexBuffer(buffer);
if (normalsNeedRebuild()) //if (normalsNeedRebuild())
buildNormalBuffer(buffer); buildNormalBuffer(buffer);
if (colorsNeedRebuild()) //if (colorsNeedRebuild())
buildColorBuffer(buffer); buildColorBuffer(buffer);
if (texCoordsNeedRebuild()) //if (texCoordsNeedRebuild())
buildTexCoordBuffer(buffer); buildTexCoordBuffer(buffer);
...@@ -1942,9 +1942,9 @@ GLuint VolumeMeshBufferManager<VolumeMesh>::getPickBuffer(ACG::GLState &_state, ...@@ -1942,9 +1942,9 @@ GLuint VolumeMeshBufferManager<VolumeMesh>::getPickBuffer(ACG::GLState &_state,
if (buffer) if (buffer)
{ {
if (positionsNeedRebuild()) //if (positionsNeedRebuild())
buildVertexBuffer(buffer); buildVertexBuffer(buffer);
if (colorsNeedRebuild()) //if (colorsNeedRebuild())
buildPickColorBuffer(_state, _offset, buffer); buildPickColorBuffer(_state, _offset, buffer);
ACG::GLState::unmapBuffer(GL_ARRAY_BUFFER); ACG::GLState::unmapBuffer(GL_ARRAY_BUFFER);
......