Added depth mask (fixes rendering bug on Ubuntu)