]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
We always <push> <PUSH> and <pop> <POP> like this... NOT.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 17 Oct 2007 09:41:01 +0000 (09:41 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 17 Oct 2007 09:41:01 +0000 (09:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7643 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index 5da743c7032ca6ba66ea2b4e52bb0d6d73022674..c157602dbd7eb3490bc6b5e4c115554c7d9d6092 100644 (file)
@@ -1304,7 +1304,6 @@ Cr = R *  .500 + G * -.419 + B * -.0813 + 128.;
                        SCR_CaptureVideo_RIFF_Write16(16); // bits per sample
                        SCR_CaptureVideo_RIFF_Write16(0); // size
                        SCR_CaptureVideo_RIFF_Pop();
-                       SCR_CaptureVideo_RIFF_Pop();
                        // master index
                        SCR_CaptureVideo_RIFF_Push("indx", NULL);
                        SCR_CaptureVideo_RIFF_Write16(4); // wLongsPerEntry
@@ -1319,6 +1318,7 @@ Cr = R *  .500 + G * -.419 + B * -.0813 + 128.;
                        for(i = 0; i < AVI_MASTER_INDEX_SIZE * 4; ++i)
                                SCR_CaptureVideo_RIFF_Write32(0); // fill up later
                        SCR_CaptureVideo_RIFF_Pop();
+                       SCR_CaptureVideo_RIFF_Pop();
                }
 
                cls.capturevideo.videofile_ix_master_audio_inuse = cls.capturevideo.videofile_ix_master_video_inuse = 0;