From 1bd41eb78e67f982c5783b78c39161f1f4b81c40 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 18 Jun 2013 23:01:15 +0000 Subject: [PATCH] fix a critical bug with r_restart or vid_restart in R_BufferData_Reset where it did not properly reset all buffers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11955 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d4ffca10b770837060cfd8bd43ed11dd810352f8 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index c6f2324f..140da814 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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; -- 2.39.2