Use best OpenGL anti-aliasing, when anti-aliasing is opted.

This commit is contained in:
Laurent Rineau 2008-07-29 10:44:16 +00:00
parent 734595f223
commit 796a0ee86e
1 changed files with 3 additions and 1 deletions

View File

@ -41,13 +41,15 @@ void Viewer::draw_aux(bool with_names)
{
::glEnable(GL_BLEND);
::glEnable(GL_LINE_SMOOTH);
::glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
// ::glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
::glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
else
{
::glDisable(GL_BLEND);
::glDisable(GL_LINE_SMOOTH);
::glDisable(GL_POLYGON_SMOOTH_HINT);
::glBlendFunc(GL_ONE, GL_ZERO);
::glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST);
}