SVG opengl implementation - strokes overlap on transparency
You can use the depth buffer to ensure that the second time you get on a point the pixels aren't written. 

You start with the maximum depth value and each new path (that you want to add to the existing drawn image) you decrement the depth.