git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10568
d7cf8633-e32d-0410-b094-
e92efae38249
CL_UnlinkDynTexture( video->cpif.name );
// free the texture
R_FreeTexture( video->cpif.tex );
+ video->cpif.tex = NULL;
// free the image data
Mem_Free( video->imagedata );
}
static void cl_video_shutdown( void )
{
- // TODO: unlink video textures?
+ int i;
+ clvideo_t *video;
+
+ for( video = cl_videos, i = 0 ; i < cl_num_videos ; i++, video++ )
+ if( video->state != CLVIDEO_UNUSED && !video->suspended )
+ SuspendVideo( video );
R_FreeTexturePool( &cl_videotexturepool );
}