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:
parent
89fea36ddd
commit
9454f9df92
|
@ -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
|
||||||
// /////////////////////////////////////////////////////////////////////////
|
// /////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue