VIEW_OVERLAY: enforce always on top behaviour through Z ordering

This commit is contained in:
Tomasz Wlostowski 2022-02-24 00:08:36 +01:00
parent 8c36ba3653
commit 7e8f14e738
1 changed files with 6 additions and 0 deletions

View File

@ -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();
}