Sign in to follow this  

ID3DXFont rendering screwy

Recommended Posts

I'm getting all sorts of weird graphical artifacting with the ID3DXFont interface. It's supposed to look like this: I get weird flashes like this: It won't happen for a few builds... and then it goes all haywire and won't go away until I reboot. Unless I disable rendering of text, then the problem goes away. Relevant code:
// init
D3DXCreateFont( parent->GetDevice(), 16, 0, 400, 0, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS,

// usage
string msg = "whatever";
g_font->DrawText(NULL, msg.c_str(), -1, &rct, DT_WORDBREAK | DT_NOCLIP | DT_RIGHT, 0xFF000000);
Any ideas?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this