From 9454f9df9245aea037d1ad5baf050c2d9101159c Mon Sep 17 00:00:00 2001 From: Mario Luzeiro Date: Wed, 4 Nov 2020 10:11:29 +0000 Subject: [PATCH] 3D-Viewer: OpenGL, enable by default the AA fixes an issue that disables AA when it back from Raytracing mode --- .../c3d_render_ogl_legacy.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp index 66b4b4eced..30d0db5d8d 100644 --- a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp +++ b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.cpp @@ -595,17 +595,10 @@ bool C3D_RENDER_OGL_LEGACY::Redraw( glViewport( 0, 0, m_windowSize.x, m_windowSize.y ); - if( m_boardAdapter.GetFlag( FL_RENDER_OPENGL_AA_DISABLE_ON_MOVE ) ) - { - if( !aIsMoving ) - { - glEnable( GL_MULTISAMPLE ); - } - else - { - glDisable( GL_MULTISAMPLE ); - } - } + if( m_boardAdapter.GetFlag( FL_RENDER_OPENGL_AA_DISABLE_ON_MOVE ) && aIsMoving ) + glDisable( GL_MULTISAMPLE ); + else + glEnable( GL_MULTISAMPLE ); // clear color and depth buffers // /////////////////////////////////////////////////////////////////////////