Nullptr safety.

Fixes https://gitlab.com/kicad/code/kicad/issues/5893
This commit is contained in:
Jeff Young 2020-10-06 12:49:10 +01:00
parent ee95d8fe2e
commit 07f139381b
1 changed files with 5 additions and 2 deletions

View File

@ -853,8 +853,11 @@ bool C3D_RENDER_OGL_LEGACY::Redraw(
pLayerDispList->GetZTop() - pLayerDispList->GetZBot() ); pLayerDispList->GetZTop() - pLayerDispList->GetZBot() );
} }
m_ogl_disp_list_anti_board->ApplyScalePosition( pLayerDispList->GetZBot(), if( m_ogl_disp_list_anti_board )
pLayerDispList->GetZTop() - pLayerDispList->GetZBot() ); {
m_ogl_disp_list_anti_board->ApplyScalePosition( pLayerDispList->GetZBot(),
pLayerDispList->GetZTop() - pLayerDispList->GetZBot() );
}
if( (!skipRenderHoles) && if( (!skipRenderHoles) &&
m_boardAdapter.GetFlag( FL_SUBTRACT_MASK_FROM_SILK ) && m_boardAdapter.GetFlag( FL_SUBTRACT_MASK_FROM_SILK ) &&