Commit eb6eac38 authored by Martin Schultz's avatar Martin Schultz

fixes picking of polyline circles for compatibility profiles.

parent 29db0967
...@@ -399,10 +399,10 @@ pick(GLState& _state , PickTarget _target) ...@@ -399,10 +399,10 @@ pick(GLState& _state , PickTarget _target)
for (size_t i = 0; i < primitives_.size(); ++i) for (size_t i = 0; i < primitives_.size(); ++i)
{ {
_state.pick_set_name(i); _state.pick_set_name(i);
glPushMatrix(); _state.push_modelview_matrix();
glTranslatef(primitives_[i].position[0], primitives_[i].position[1], primitives_[i].position[2]); _state.translate(primitives_[i].position[0], primitives_[i].position[1], primitives_[i].position[2]);
draw_obj(_state, i); draw_obj(_state, i);
glPopMatrix(); _state.pop_modelview_matrix();
} }
break; break;
} }
......
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