Group: microsoft.public.win32.programmer.directx.graphics · Group Profile
Author: StegSteg Date: Sep 9, 2008 13:31
OK, the pointer involved is m_pFont.
If I call SafeRelease in function SetFontLarge this creates an immediate
problem. If I just go ahead and call D3DX10CreateFont in SetFontLarge things
work but the program eventually crashes due to the memory leak.
So, I understand what you are saying about it being a pointer problem, but
what is the correct way to associate a new font with the device?
Thanks, Steg
"Richard [Microsoft Direct3D MVP]" wrote:
> [Please do not mail me a copy of your followup]
>
> =?Utf-8?B?U3RlZw==?= discussions.microsoft.com> spake the secret code
> <841B0F53-6DDA-4059-8CE1-9F1DCC4D8352@microsoft.com> thusly:
>
>>Thanks Richard, but do you know how to change the font once it has already
>>been initialised?
|