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 6165afaa65..6b2dc87799 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 @@ -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 // ///////////////////////////////////////////////////////////////////////// diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/c3d_render_raytracing.cpp b/3d-viewer/3d_rendering/3d_render_raytracing/c3d_render_raytracing.cpp index 8c8613c048..2f6a5b6932 100644 --- a/3d-viewer/3d_rendering/3d_render_raytracing/c3d_render_raytracing.cpp +++ b/3d-viewer/3d_rendering/3d_render_raytracing/c3d_render_raytracing.cpp @@ -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();