diff --git a/panda/src/dxgsg8/d3dfont8.cxx b/panda/src/dxgsg8/d3dfont8.cxx index 6f49b26c23..f24075b670 100644 --- a/panda/src/dxgsg8/d3dfont8.cxx +++ b/panda/src/dxgsg8/d3dfont8.cxx @@ -399,11 +399,7 @@ HRESULT CD3DFont::RestoreDeviceObjects() { // Desc: Destroys all device-dependent objects //----------------------------------------------------------------------------- HRESULT CD3DFont::InvalidateDeviceObjects() { - #ifdef _DEBUG - if(m_pVB) { - cout << "XXXX Releasing Font VertexBuffer\n"; - } - #endif + SAFE_RELEASE( m_pVB );