Use AA lines when AA is enabled.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user