Commit d34b6bd3 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'fixPolylineCirclePickingGLCompat' into 'master'

fixes picking of polyline circles for compatibility profiles.

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