materialsystem/ctexture.cpp
void CTexture::FreeOptimalReadBuffer( int nMaxSize )
{
	if ( s_pOptimalReadBuffer && s_nOptimalReadBufferSize >= nMaxSize )
	{
		if ( mat_spewalloc.GetBool() )
		{
			Msg( "Freeing optimal read buffer of %d bytes @ 0x%p\n", s_nOptimalReadBufferSize, s_pOptimalReadBuffer );
		}
		g_pFullFileSystem->FreeOptimalReadBuffer( s_pOptimalReadBuffer );
		s_pOptimalReadBuffer = NULL;
		s_nOptimalReadBufferSize = 0;
	}
}
//-----------------------------------------------------------------------------
// Free the optimal read buffer if it grows too large
//-----------------------------------------------------------------------------
Free the optimal read buffer if it grows too large
Free the optimal read buffer if it grows too large
void CTexture::FreeOptimalReadBuffer( int nMaxSize )
{
	if ( s_pOptimalReadBuffer && s_nOptimalReadBufferSize >= nMaxSize )
	{
		if ( mat_spewalloc.GetBool() )
		{
			Msg( "Freeing optimal read buffer of %d bytes @ 0x%p\n", s_nOptimalReadBufferSize, s_pOptimalReadBuffer );
		}
		g_pFullFileSystem->FreeOptimalReadBuffer( s_pOptimalReadBuffer );
		s_pOptimalReadBuffer = NULL;
		s_nOptimalReadBufferSize = 0;
	}
}
void CTexture :: FreeOptimalReadBuffer ( int nMaxSize ) { if ( s_pOptimalReadBuffer && s_nOptimalReadBufferSize >= nMaxSize ) { if ( mat_spewalloc . GetBool ( ) ) { Msg ( " \n " , s_nOptimalReadBufferSize , s_pOptimalReadBuffer ) ; } g_pFullFileSystem -> FreeOptimalReadBuffer ( s_pOptimalReadBuffer ) ; s_pOptimalReadBuffer = NULL ; s_nOptimalReadBufferSize = 0 ; } }
Free the optimal read buffer if it grows too large
Free the optimal read buffer if it grows too large