Got depth buffer working! We needed to specify a depth function.