Drawing line on texture

Hi,

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”?

Thanks.

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…

C