   2D - Disabling depth
  Hi, I'm using Direct3D for 2D graphics. I've run into a small problem with drawing two sprites at the same x/y/z. I have all of my sprites manually sorted so that I can just iterate over a list and draw them from, but if two of them are drawn at the same x/y/z, it causes them to fight over who should be drawn in front and they flicker over each other.I've done some quick searching, but haven't come up with any way to fix this. I figured disabling the z buffer would fix this, but it doesn't.If possible, I'd like my sprites to be placed on top of everything when I render them. Any ideas?   
  Disabling the Z test (SetRenderState(D3DRS_ZFUNC, D3DCMP_ALWAYS) will do what you want. If you still see Z fighting, then the Z-buffer is still enabled (Since some pixels are passing and some are failing).   ;  I was actually just reading about that. Thanks.It turned out the problem was a really obscure logic error, though. :(   