In order to deal with this problem I implemented a test in my D3D init that checks the devcaps to ensure that:
*The D3DPTADDRESSCAPS_WRAP is enabled.
*MaxTextureRepeat is sufficiently large to wrap the texture (also considering D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE).
According to the SDK docs (http://msdn.microsof...9(v=vs.85).aspx) this should be all that I need to check on, but when I run the updated app on the problem machine it passes the tests and continues to fail to wrap the texture.
The small dots are the mid-level layer, which appears to be wrapping correctly, but the smeary lines are the background layer.
What you're seeing there in the shot is the lower-right corner of the BG which is getting smeared to the right and downwards rather than wrapping. So I'm thinking that the problem is definitely with the address wrapping, but I don't know what else to test here.
Could anyone point me in the right direction here?
As always, thank you in advance for any advice.
It occurs to me that the BG layer texture is significantly larger than the midl-level layers texture. The caps of this device are 2048x2048 for max texture size, which I believe is large enough, but if this turns out to be the source of the problem then if I simply use a smaller source rect when drawing the texture (via D3DXSprite) will it wrap correctly?
Edited by Khatharr, 20 May 2012 - 05:19 PM.