Re: change font size?
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Wed, 10 Sep 2008 21:26:17 -0700
Steg <Steg@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi, my DX10 program works fine when, on initialisation, I create a font as
follows:
...
Maybe the problem lies with SafeRelease because if it is omitted the crash
is not immediate but eventually occurs (I think due to repeat calls on
D3DX10CreateFont). SafeRelease is:
template <class T>
inline void SafeRelease( T& iface )
{
if( iface )
{
iface->Release();
iface = NULL;
}
}
Why reinvent the wheel here, instead of using CComPtr or _com_ptr_t?
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- Follow-Ups:
- Re: change font size?
- From: Richard [Microsoft Direct3D MVP]
- Re: change font size?
- References:
- change font size?
- From: Steg
- change font size?
- Prev by Date: Re: DirectX 10 and Real-Time Render of Glass
- Next by Date: RE: Full-screen, exclusive-mode video and D3D debugging
- Previous by thread: Re: change font size?
- Next by thread: Re: change font size?
- Index(es):