Fix writing to depth buffer if alpha is 0.

Thanks to @unknownloner for the heads up and fix.
Signed-off-by: Chris Sanders <zidane@outlook.com>