Use AA lines when AA is enabled.

This commit is contained in:
Leonardo Zide 2020-06-06 11:15:39 -07:00
parent 899c4c3cec
commit aefe36dbca

View file

@ -235,6 +235,9 @@ void lcContext::DestroyResources()
void lcContext::SetDefaultState()
{
if (QGLFormat::defaultFormat().sampleBuffers() && QGLFormat::defaultFormat().samples() > 1)
glEnable(GL_LINE_SMOOTH);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);