I'm having an odd issue with ID3DXFont.
I'll start by posting an image of the problem and maybe someone will recognize it straight away,
That supposedly says Debug Mode....
This problem only occurs when the DrawText() function of any font object is only called once. If I draw another line later in the program both lines draw perfectly fine, as shown below,
The problem is localized to each instance of ID3DXFont, meaning I can create 2 instances of ID3DXFont draw 2 lines with one instance and they will draw fine but if I only draw one line with the other instance that line will draw incorrectly.
My Text drawing code is as follows;
device->ClearScreen(bgColor);
device->BeginScene();
spriteInterface->Begin(D3DXSPRITE_ALPHABLEND);
RECT fontPos;
SetRect(&fontPos, xPos, yPos, 100, 100);
debugText->DrawText(spriteInterface,
"Debug Mode",
-1,
&fontPos,
DT_LEFT | DT_NOCLIP,
D3DCOLOR_XRGB(255, 255, 255));
spriteInterface->End();
device->EndScene();
device->Present(NULL, NULL, NULL, NULL);
Greatly appreciate any help anyone can offer,
cheers Liam F