I am making a voxel engine in C++ with Direct3D.
I have rendered some voxels on the screen with colours for sides (no textures yet).
However it appears that the z-buffer isn't working properly. See image: (Image is of a "chunk" of blocks)
What would be causing this?