]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a critical bug with r_restart or vid_restart in R_BufferData_Reset
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Jun 2013 23:01:15 +0000 (23:01 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Jun 2013 23:01:15 +0000 (23:01 +0000)
where it did not properly reset all buffers

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

gl_rmain.c

index c6f2324f4e7170e17d3965b802d4756c7d018ed3..140da814da77c82e821e1a52448a469e9d56a3d5 100644 (file)
@@ -4656,7 +4656,7 @@ void R_BufferData_Reset(void)
                for (type = 0;type < R_BUFFERDATA_COUNT;type++)
                {
                        // free all buffers
-                       p = &r_bufferdata_buffer[r_bufferdata_cycle][type];
+                       p = &r_bufferdata_buffer[cycle][type];
                        while (*p)
                        {
                                mem = *p;