Drawing line on texture


I’m trying to draw a line on a 2D texture but I am getting the “stitching” effect. I’m not sure if using a polgon offset is appropriate to solve this problem (indeed, I’ve tried it to no avail).

Does anyone have any idea on how to get rid of the “stitching”?


PolygonOffset would be the way to go. You did enable it, right?

Many thanks for you swift reply!

You are right, I hadn’t enabled it in the correct place. Doh! It’s all working now…