]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_video.c
now uses a fragment texture for the video (massive speedup)
[xonotic/darkplaces.git] / cl_video.c
index fd4c7071e8028cf3e5ff5e09f8b9fbf18f678a29..1afbb87fb8c468e96bb3c272afc00d5716703859 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;