MSAA: sampling artifacts with alpha textures

How do I deal with the artifact around the
edges of the polygon? The problem is caused
by 2 mutually exclusive requirements:

  1. MSAA
  2. Tiled alpha texture (i.e. cannot be clamped to edge)

The texture is a 2x2 image tiled twice, and
using NEAREST filtering for sharp edges.

Thanks in advance for any ideas!


Are you using shader to render polygon?
Try using centroid interpolation for texcoords: