Quote:Original post by MJPQuote:Original post by Gauvir_Mucca
Is this a well-documented bug/feature that MS acknowledges and suggests as the fix for?
It's not a "bug", it's a natural result of bilinear filtering. The only way to make sure that only the texels within your rectangle get sampled is to use POINT for your MagFilter and MinFilter. If you want bilinear filtering, you'll need to add a gutter around your image as others have suggested.
Ok, so I don't want bilinear filtering. I try calling this before rendering:
pD3DDevice9->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_POINT);pD3DDevice9->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_POINT);
But my problem still remains. What am I doing wrong?