3D-Viewer: disable AA while moving

disable AA for Raytracing
Fixes #4007
This commit is contained in:
Mario Luzeiro 2020-03-28 19:59:41 +00:00
parent fd59660ec8
commit 656efc8d62
2 changed files with 9 additions and 1 deletions

View File

@ -565,6 +565,14 @@ bool C3D_RENDER_OGL_LEGACY::Redraw(
glViewport( 0, 0, m_windowSize.x, m_windowSize.y );
if( aIsMoving == false )
{
glEnable( GL_MULTISAMPLE );
}
else
{
glDisable( GL_MULTISAMPLE );
}
// clear color and depth buffers
// /////////////////////////////////////////////////////////////////////////

View File

@ -211,7 +211,7 @@ bool C3D_RENDER_RAYTRACING::Redraw(
glDisable( GL_DEPTH_TEST );
glDisable( GL_TEXTURE_2D );
glDisable( GL_BLEND );
glDisable( GL_MULTISAMPLE );
const bool was_camera_changed = m_camera.ParametersChanged();