Moving from 5.1 to 5.3 AddToViewport not honoring ZOrder

Our studio just upgraded from 5.1 to 5.3. We have layerd menus added to the viewport using pMyMenu->AddtoViewport(iZorder). It seems that the zorder is no longer being honored and my foreground menu is now behind my main menu. Is this a bug in 5.3?

I think this issue has been around for a while, because even our HUD code from years ago is adding HUD elements to view in their relative Z Order.

In 5.1 I’ve had no problem adding menus to viewport and having them honor Zorder. In 5.3 the zorder is no longer being honored and the menus are overlapping in order of addition.