Commit 890cddd6 authored by Christopher Tenter's avatar Christopher Tenter

prevent rebuilding picking buffer all the time now

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19944 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8cebd346
......@@ -1905,7 +1905,10 @@ template <class VolumeMesh>
GLuint VolumeMeshBufferManager<VolumeMesh>::getPickBuffer(ACG::GLState &_state, unsigned int _offset)
{
if (_offset != mCurrentPickOffset || _state.pick_current_index() != mGlobalPickOffset)
{
invalidateColors();
mGlobalPickOffset = _state.pick_current_index();
}
if ((mBuffer == 0) || optionsChanged() || mInvalidated)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment