Fix software line render (use stencil in fillmode and not in linemode)