From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Thu, 25 Jul 2002 09:58:47 +0000 (+0000)
Subject: now uses a fragment texture for the video (massive speedup)
X-Git-Tag: RELEASE_0_2_0_RC1~422
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=668a437d46dfad040c8e32398fd7cb916345f7d1;p=xonotic%2Fdarkplaces.git

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
---

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;