Sprite not working after upgrade to DirectX Aug version.
Hi all,
I've upgraded the DirectX SDK to the Aug version.
Now, when i draw a sprite, nothing shows up.
My code is as follow for the draw...
spr.Begin(SpriteFlags.AlphaBlend)
spr.Draw2D(tex2, Rectangle.Empty, Rectangle.Empty, New Point(0, 0), Color.White)
spr.End()
where spr is the sprite, and tex2 is a texture.
What is happening, is that it will draw once OK, but then when i loop and clear the scene, it will no longer draw.
If i remove the newest d3dx reference and put in the 2nd last version, it works OK.
I checked the release notes, and something was changed about the ordering of the sprites.
Has anyone else gotten this problem? or know the answer?
Dustin.
How'd you mark your own answer as right? I thought thread started could only do that...
Anyways.. I have some sprites using the Draw() function instead of Draw2d. I'm using Draw2d for a reason.
However, i will just revert back to the older versin of d3dx. No point in changing what already works for a substitue answer of a bug.
Dustin.
Moderators can mark threads as "answered" too.

Regarding Draw2D...I'm curious as to the reason you're using Draw2D, since there's no significant difference between the two. Draw2D merely converts Points to Vector3s and (optionally) applies a Sprite.Transform.
Regarding your approach of moving to an older version of d3dx. That is only a temporary fix, and potentially a worse one than moving to Sprite.Draw. It is possible that the behaviour of Draw2D will change in a future release in order to address some specific bugs in the current release.