Fixed bug in depth buffer writing for offscreen renderers.