INNER CODE UNIT · C
Frm_Info
ForsakenX/forsaken · 2dtextures.c:216
Frm_Info = malloc( sizeof( FRAME_INFO ) ); // Allocate memory for return structure
if( Frm_Info == NULL ) return( NULL );
if( placeholder )
{
Placeholder_Off_Buffer = (OFF_BUFFER *)malloc( sizeof( OFF_BUFFER ) ); // Allocate memory
if( Placeholder_Off_Buffer == NULL )
{
free( Frm_Info );
return( NULL );
}
Frm_Info->vid_tpage_index = AddTexture( &Tloadheader, "", true , Scale , false, xsize, ysize ); // add dummy texture
if( Frm_Info->vid_tpage_index == -1 )
{
free( Frm_Info );
free( Placeholder_Off_Buffer );
return ( NULL );