Looks like the empty image drawn before the mesh selection overlay. Unfortunately I still don't understand how drawing transparent things works when they are not drawn background first... So I don't know how to fix this.

@Clément Foucault (fclem): I know we talked about that for a moment last week but I still don't quite get it.. It would be nice if you could send me a link to some learning material on the topic.

@Jacques Lucke (JacquesLucke) just don't write to the depth buffer for these. We don't really care for the order of overlapping transparent image empties. If you want you can sort them based on their origins. There is a function for that actually: DRW_pass_sort_shgroup_z(). Maybe do that for only for transparent images.

ok, when I just disable writing to the depth buffer I get these tow problems:

The mesh wire and the image empties are currently in the same draw pass. Should we separate the images out into a separate draw pass so that we can sort them independently of the other non-mesh stuff?
It just feels like simply disabling writing to the depth buffer will only cause other bug reports in the future..

@Jacques Lucke (JacquesLucke) just don't write to the depth buffer for these. We don't really care for the order of overlapping transparent image empties. If you want you can sort them based on their origins. There is a function for that actually: DRW_pass_sort_shgroup_z(). Maybe do that for only for transparent images.

You cannot have everything. Transparency, Occlusion, Dithering. You must choose the lesser evil.