diff --git a/common/view/view_overlay.cpp b/common/view/view_overlay.cpp index a288fc9c2f..2dd666005e 100644 --- a/common/view/view_overlay.cpp +++ b/common/view/view_overlay.cpp @@ -299,8 +299,14 @@ const BOX2I VIEW_OVERLAY::ViewBBox() const void VIEW_OVERLAY::ViewDraw( int aLayer, VIEW* aView ) const { + auto gal = aView->GetGAL(); + gal->PushDepth(); + gal->SetLayerDepth( gal->GetMinDepth() ); + for( const VIEW_OVERLAY::COMMAND* cmd : m_commands ) cmd->Execute( aView ); + + gal->PopDepth(); }