3D-Viewer: OpenGL, enable by default the AA

fixes an issue that disables AA when it back from Raytracing mode
This commit is contained in:
Mario Luzeiro 2020-11-04 10:11:29 +00:00 committed by Wayne Stambaugh
parent 89fea36ddd
commit 9454f9df92
1 changed files with 4 additions and 11 deletions

View File

@ -595,17 +595,10 @@ bool C3D_RENDER_OGL_LEGACY::Redraw(
glViewport( 0, 0, m_windowSize.x, m_windowSize.y ); glViewport( 0, 0, m_windowSize.x, m_windowSize.y );
if( m_boardAdapter.GetFlag( FL_RENDER_OPENGL_AA_DISABLE_ON_MOVE ) ) if( m_boardAdapter.GetFlag( FL_RENDER_OPENGL_AA_DISABLE_ON_MOVE ) && aIsMoving )
{ glDisable( GL_MULTISAMPLE );
if( !aIsMoving ) else
{ glEnable( GL_MULTISAMPLE );
glEnable( GL_MULTISAMPLE );
}
else
{
glDisable( GL_MULTISAMPLE );
}
}
// clear color and depth buffers // clear color and depth buffers
// ///////////////////////////////////////////////////////////////////////// // /////////////////////////////////////////////////////////////////////////