What's stopping you dropping the viewport idea altogether if that's indeed the problem?
What I do is render my view as normal and then draw all the static object on top and using Entityorder to make sure they're all definitely drawn last and on top. Then just translate your static icons along with the projection matrix of the camera so it's as if they're never moving, if indeed I presume the second viewport of icons doesn't move.
This is what I've always done in this situation where I want parts of the screen obscurred by static entities when the camera moves around for stuff like sprites, score and energy bars but don't want to use a seperate viewport to handle this.
I'm sorry if I've missed the point completely. I'm slightly baffled myself :)
What I do is render my view as normal and then draw all the static object on top and using Entityorder to make sure they're all definitely drawn last and on top. Then just translate your static icons along with the projection matrix of the camera so it's as if they're never moving, if indeed I presume the second viewport of icons doesn't move.
This is what I've always done in this situation where I want parts of the screen obscurred by static entities when the camera moves around for stuff like sprites, score and energy bars but don't want to use a seperate viewport to handle this.
I'm sorry if I've missed the point completely. I'm slightly baffled myself :)