fix z-buffer issues on x11/mesa
Merge pull request #371 from SystemFail/master

fix z-buffer issues on x11/mesa