Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Pitiot
CGoGN
Commits
21adc396
Commit
21adc396
authored
Jan 03, 2012
by
untereiner
Browse files
infinite loop in setDartsIdColor from TopoRender
parent
010b5977
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Algo/Render/GL2/topoRender.hpp
View file @
21adc396
...
...
@@ -343,7 +343,6 @@ void TopoRenderGMap::updateData(typename PFP::MAP& map, const typename PFP::TVEC
template
<
typename
PFP
>
void
TopoRender
::
setDartsIdColor
(
typename
PFP
::
MAP
&
map
,
const
FunctorSelect
&
good
)
{
m_vbo3
->
bind
();
float
*
colorBuffer
=
reinterpret_cast
<
float
*>
(
glMapBuffer
(
GL_ARRAY_BUFFER
,
GL_READ_WRITE
));
unsigned
int
nb
=
0
;
...
...
@@ -370,7 +369,8 @@ void TopoRender::setDartsIdColor(typename PFP::MAP& map, const FunctorSelect& go
else
{
CGoGNerr
<<
"Error buffer too small for color picking (change the good parameter ?)"
<<
CGoGNendl
;
d
=
map
.
end
();
//d = map.end();
break
;
}
}
glUnmapBuffer
(
GL_ARRAY_BUFFER
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment