fix depthbuffer rendering