Core (examples/simple): Miscellaneous depth and z-buffer related fixes