X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_video.c;h=1afbb87fb8c468e96bb3c272afc00d5716703859;hp=fd4c7071e8028cf3e5ff5e09f8b9fbf18f678a29;hb=668a437d46dfad040c8e32398fd7cb916345f7d1;hpb=02f569a0df0e1a9dee41cbcbed4e9e409b3799e9;ds=sidebyside 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;