INNER CODE UNIT · C
Placeholder_Off_Buffer
ForsakenX/forsaken · 2dtextures.c:221
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 );
}
Frm_Info->tpage_name[ 0 ] = 0;
Frm_Info->sys_tpage_index = -1;