mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Use AA lines when AA is enabled.
This commit is contained in:
parent
899c4c3cec
commit
aefe36dbca
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue