Commit 21adc396 authored by untereiner's avatar untereiner
Browse files

infinite loop in setDartsIdColor from TopoRender

parent 010b5977
...@@ -343,7 +343,6 @@ void TopoRenderGMap::updateData(typename PFP::MAP& map, const typename PFP::TVEC ...@@ -343,7 +343,6 @@ void TopoRenderGMap::updateData(typename PFP::MAP& map, const typename PFP::TVEC
template<typename PFP> template<typename PFP>
void TopoRender::setDartsIdColor(typename PFP::MAP& map, const FunctorSelect& good) void TopoRender::setDartsIdColor(typename PFP::MAP& map, const FunctorSelect& good)
{ {
m_vbo3->bind(); m_vbo3->bind();
float* colorBuffer = reinterpret_cast<float*>(glMapBuffer(GL_ARRAY_BUFFER, GL_READ_WRITE)); float* colorBuffer = reinterpret_cast<float*>(glMapBuffer(GL_ARRAY_BUFFER, GL_READ_WRITE));
unsigned int nb=0; unsigned int nb=0;
...@@ -370,7 +369,8 @@ void TopoRender::setDartsIdColor(typename PFP::MAP& map, const FunctorSelect& go ...@@ -370,7 +369,8 @@ void TopoRender::setDartsIdColor(typename PFP::MAP& map, const FunctorSelect& go
else else
{ {
CGoGNerr << "Error buffer too small for color picking (change the good parameter ?)" << CGoGNendl; CGoGNerr << "Error buffer too small for color picking (change the good parameter ?)" << CGoGNendl;
d = map.end(); //d = map.end();
break;
} }
} }
glUnmapBuffer(GL_ARRAY_BUFFER); glUnmapBuffer(GL_ARRAY_BUFFER);
......
Supports Markdown
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