revert removal of ternary operators from r54414


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54421 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Make sure we are writting to the depth buffer when rendering alpha polygons for shadows. Otherwise alpha shadows won't work\!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54422 954f8c5b-7b00-dc11-b283-0030488c597c