From 668a437d46dfad040c8e32398fd7cb916345f7d1 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 25 Jul 2002 09:58:47 +0000 Subject: [PATCH] now uses a fragment texture for the video (massive speedup) clears audioqueue when video stops git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2089 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cl_video.c b/cl_video.c index fd4c7071..1afbb87f 100644 --- a/cl_video.c +++ b/cl_video.c @@ -186,13 +186,15 @@ void CL_VideoStart(char *filename) cl_videosoundresampledata = NULL; cl_videotexturepool = R_AllocTexturePool(); - cl_videotexture = R_LoadTexture(cl_videotexturepool, "videotexture", cl_videoimagewidth, cl_videoimageheight, NULL, TEXTYPE_RGBA, 0); + cl_videotexture = R_LoadTexture(cl_videotexturepool, "videotexture", cl_videoimagewidth, cl_videoimageheight, NULL, TEXTYPE_RGBA, TEXF_FRAGMENT); } void CL_VideoStop(void) { cl_videoplaying = false; + S_RawSamples_ClearQueue(); + if (cl_videostream) dpvsimpledecode_close(cl_videostream); cl_videostream = NULL; -- 2.39.2