Operating system: Win 10 x64
Graphics card: NVIDIA Geforce 1060 GTX
Broken: blender 2.80, 1ae6aaad43ad, 2019-03-22
Short description of error
rendering glitch when Grease Pencil lines are hidden because of Xray but also appear because of 2D ordering
Exact steps for others to reproduce the error
With surface projection, draw lines on a GP layer set as 2D depth order on both side of a mesh.
With the right angle selected, the hidden lines (because of the Xray deactivated and the mesh being in the way) actually cut the lines that should be visible. (see example)
The expected behavior can be seen when using 3D Space ordering, except 2D ordering also has other uses that mean it's not as simple as switching to 3D Space. When a line is hidden because of Xray, it should still not mask the lines that are not hidden.