now uses a fragment texture for the video (massive speedup)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Jul 2002 09:58:47 +0000 (09:58 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Jul 2002 09:58:47 +0000 (09:58 +0000)
clears audioqueue when video stops

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2089 d7cf8633-e32d-0410-b094-e92efae38249

cl_video.c

index fd4c707..1afbb87 100644 (file)
@@ -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;