When draw state uses depth, check if the framebuffer has a depth attachment.
This test is failing for overlay_image background images.
I didn't add it into the GPU module as I couldn't locate a nice entry point. In the
draw manager this is isolated.
Should also be added to the new draw manager.